parport: gsc: remove DMA leftover code
authorArnd Bergmann <arnd@arndb.de>
Wed, 26 Jul 2023 15:09:14 +0000 (17:09 +0200)
committerHelge Deller <deller@gmx.de>
Thu, 3 Aug 2023 12:40:37 +0000 (14:40 +0200)
commit2e1b1d7063a35ab6cf9984f9d5bc29829e1e8788
tree33e1d792afa2ac324d59e276abbfd146c7d40642
parentce9ff57d393db86a34ba3f817d7fb886b7c278dc
parport: gsc: remove DMA leftover code

This driver does not actually work with DMA mode, but still tries
to call ISA DMA interface functions that are stubbed out on
parisc, resulting in a W=1 build warning:

drivers/parport/parport_gsc.c: In function 'parport_remove_chip':
drivers/parport/parport_gsc.c:389:20: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
  389 |    free_dma(p->dma);

Remove the corresponding code as a prerequisite for turning on -Wempty-body
by default in all kernels.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/parport/parport_gsc.c
drivers/parport/parport_gsc.h