net/mlx4_core: Fix misplaced brackets of sizeof
authorTariq Toukan <tariqt@mellanox.com>
Mon, 28 Aug 2017 13:38:22 +0000 (16:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Aug 2017 21:58:32 +0000 (14:58 -0700)
When changing the sizeof style usage in the patch cited below,
one brackets misplacement was introduced. Here we fix it.

Fixes: 31975e27a4b5 ("mlx4: sizeof style usage")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/eq.c

index b98698bf75ddf2001df46cdd4d0652e9e06d440f..6f57c052053e24e3ee2bde0e70ddd94c2edb7883 100644 (file)
@@ -726,7 +726,7 @@ static int mlx4_eq_int(struct mlx4_dev *dev, struct mlx4_eq *eq)
                        }
                        memcpy(&priv->mfunc.master.comm_arm_bit_vector,
                               eqe->event.comm_channel_arm.bit_vec,
-                              sizeof(eqe)->event.comm_channel_arm.bit_vec);
+                              sizeof(eqe->event.comm_channel_arm.bit_vec));
                        queue_work(priv->mfunc.master.comm_wq,
                                   &priv->mfunc.master.comm_work);
                        break;