]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/mlxfw: Remove unneeded semicolon
authorZheng Bin <zhengbin13@huawei.com>
Fri, 24 Apr 2020 09:00:15 +0000 (17:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Apr 2020 23:56:22 +0000 (16:56 -0700)
Fixes coccicheck warning:

drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c:79:2-3: Unneeded semicolon
drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c:162:2-3: Unneeded semicolon

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c

index 046a0cb82ed89b03ea2392d1c46d3f3716d5cbd4..7a04c626a2aa50efed43785074494598d826b7cc 100644 (file)
@@ -76,7 +76,7 @@ static int mlxfw_fsm_state_err(struct mlxfw_dev *mlxfw_dev,
        case MLXFW_FSM_STATE_ERR_MAX:
                MLXFW_ERR_MSG(mlxfw_dev, extack, "unknown error", err);
                break;
-       };
+       }
 
        return mlxfw_fsm_state_errno[fsm_state_err];
 };
@@ -159,7 +159,7 @@ mlxfw_fsm_reactivate_err(struct mlxfw_dev *mlxfw_dev,
        case MLXFW_FSM_REACTIVATE_STATUS_MAX:
                MLXFW_REACT_ERR("unexpected error", err);
                break;
-       };
+       }
        return -EREMOTEIO;
 };