• Arnd Bergmann's avatar
    parport: gsc: remove DMA leftover code · 2e1b1d70
    Arnd Bergmann authored
    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: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarHelge Deller <deller@gmx.de>
    2e1b1d70
parport_gsc.c 10.2 KB