staging: mt29f: fix usage of coma operator
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>
Tue, 29 Dec 2015 11:32:22 +0000 (12:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 04:11:52 +0000 (20:11 -0800)
Using the coma operator for multiple assignments is unnecessary and just looks
weird here.

Signed-off-by: Manuel Pégourié-Gonnard <mpg@elzevir.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt29f_spinand/mt29f_spinand.c

index 983371b52ed4222d4af825823d290bba3d1ee1bb..16cda44adc50f73639b05d1f0503e445d50d4383 100644 (file)
@@ -223,11 +223,11 @@ static int spinand_set_otp(struct spi_device *spi_nand, u8 *otp)
        int retval;
        struct spinand_cmd cmd = {0};
 
-       cmd.cmd = CMD_WRITE_REG,
-       cmd.n_addr = 1,
-       cmd.addr[0] = REG_OTP,
-       cmd.n_tx = 1,
-       cmd.tx_buf = otp,
+       cmd.cmd = CMD_WRITE_REG;
+       cmd.n_addr = 1;
+       cmd.addr[0] = REG_OTP;
+       cmd.n_tx = 1;
+       cmd.tx_buf = otp;
 
        retval = spinand_cmd(spi_nand, &cmd);
        if (retval < 0)
This page took 0.028277 seconds and 5 git commands to generate.