hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/infiniband/hw/mlx4/mcg.c
....@@ -673,7 +673,7 @@
673673 if (!list_empty(&group->pending_list))
674674 req = list_first_entry(&group->pending_list,
675675 struct mcast_req, group_list);
676
- if ((method == IB_MGMT_METHOD_GET_RESP)) {
676
+ if (method == IB_MGMT_METHOD_GET_RESP) {
677677 if (req) {
678678 send_reply_to_slave(req->func, group, &req->sa_mad, status);
679679 --group->func[req->func].num_pend_reqs;
....@@ -944,7 +944,7 @@
944944 switch (sa_mad->mad_hdr.method) {
945945 case IB_MGMT_METHOD_SET:
946946 may_create = 1;
947
- /* fall through */
947
+ fallthrough;
948948 case IB_SA_METHOD_DELETE:
949949 req = kzalloc(sizeof *req, GFP_KERNEL);
950950 if (!req)