Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ata: Avoid comma separated statements

Use semicolons and braces.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Joe Perches and committed by
Jens Axboe
e53d76e6 10340f8d

+13 -8
+13 -8
drivers/ata/pata_icside.c
··· 202 202 * Choose the IOMD cycle timing which ensure that the interface 203 203 * satisfies the measured active, recovery and cycle times. 204 204 */ 205 - if (t.active <= 50 && t.recover <= 375 && t.cycle <= 425) 206 - iomd_type = 'D', cycle = 187; 207 - else if (t.active <= 125 && t.recover <= 375 && t.cycle <= 500) 208 - iomd_type = 'C', cycle = 250; 209 - else if (t.active <= 200 && t.recover <= 550 && t.cycle <= 750) 210 - iomd_type = 'B', cycle = 437; 211 - else 212 - iomd_type = 'A', cycle = 562; 205 + if (t.active <= 50 && t.recover <= 375 && t.cycle <= 425) { 206 + iomd_type = 'D'; 207 + cycle = 187; 208 + } else if (t.active <= 125 && t.recover <= 375 && t.cycle <= 500) { 209 + iomd_type = 'C'; 210 + cycle = 250; 211 + } else if (t.active <= 200 && t.recover <= 550 && t.cycle <= 750) { 212 + iomd_type = 'B'; 213 + cycle = 437; 214 + } else { 215 + iomd_type = 'A'; 216 + cycle = 562; 217 + } 213 218 214 219 ata_dev_info(adev, "timings: act %dns rec %dns cyc %dns (%c)\n", 215 220 t.active, t.recover, t.cycle, iomd_type);