Explorar el Código

IB/mlx4: Incorrect semicolon after if statement

A stray semicolon makes us inadvertently ignore the value of err.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Ilpo Järvinen hace 18 años
padre
commit
fe11cb6ba4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      drivers/infiniband/hw/mlx4/mad.c

+ 1 - 1
drivers/infiniband/hw/mlx4/mad.c

@@ -109,7 +109,7 @@ int mlx4_MAD_IFC(struct mlx4_ib_dev *dev, int ignore_mkey, int ignore_bkey,
 			   in_modifier, op_modifier,
 			   MLX4_CMD_MAD_IFC, MLX4_CMD_TIME_CLASS_C);
 
-	if (!err);
+	if (!err)
 		memcpy(response_mad, outmailbox->buf, 256);
 
 	mlx4_free_cmd_mailbox(dev->dev, inmailbox);