From: Manuel Pégourié-Gonnard Date: Tue, 29 Dec 2015 11:32:22 +0000 (+0100) Subject: staging: mt29f: fix usage of coma operator X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=61cb8d9a2ba7bdd7ad29cc1964e58ad910dd102f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: mt29f: fix usage of coma operator 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 --- 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)