From 61cb8d9a2ba7bdd7ad29cc1964e58ad910dd102f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 29 Dec 2015 12:32:22 +0100 Subject: [PATCH] staging: mt29f: fix usage of coma operator MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Using the coma operator for multiple assignments is unnecessary and just looks weird here. Signed-off-by: Manuel Pégourié-Gonnard Signed-off-by: Greg Kroah-Hartman --- drivers/staging/mt29f_spinand/mt29f_spinand.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/mt29f_spinand/mt29f_spinand.c b/drivers/staging/mt29f_spinand/mt29f_spinand.c index 983371b52ed4..16cda44adc50 100644 --- a/drivers/staging/mt29f_spinand/mt29f_spinand.c +++ b/drivers/staging/mt29f_spinand/mt29f_spinand.c @@ -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) -- 2.39.5