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

Configure Feed

Select the types of activity you want to include in your feed.

parport: mfc3: avoid empty-body warning

on m68k builds, the mfc3 driver causes a warning about an empty if() block:

drivers/parport/parport_mfc3.c: In function 'control_pc_to_mfc3':
drivers/parport/parport_mfc3.c:106:37: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]

Remove it in favor of a simpler comment.

Acked-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Link: https://lore.kernel.org/lkml/20230727122448.2479942-1-arnd@kernel.org/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20240405144304.1223160-1-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Arnd Bergmann and committed by
Greg Kroah-Hartman
1d6b84d2 5f8fcfc3

+1 -2
+1 -2
drivers/parport/parport_mfc3.c
··· 102 102 ret |= 128; 103 103 if (control & PARPORT_CONTROL_AUTOFD) /* AUTOLF */ 104 104 ret &= ~64; 105 - if (control & PARPORT_CONTROL_STROBE) /* Strobe */ 106 - /* Handled directly by hardware */; 105 + /* PARPORT_CONTROL_STROBE handled directly by hardware */ 107 106 return ret; 108 107 } 109 108