• Michael Buesch's avatar
    parport_pc: Fix subscription bugs · 73e0d48b
    Michael Buesch authored
    This patch fixes array subscription bugs in the parport_pc driver.
    
    drivers/parport/parport_pc.c: In function ‘parport_irq_probe’:
    drivers/parport/parport_pc.c:1589: warning: array subscript is above array bounds
    drivers/parport/parport_pc.c: In function ‘parport_pc_probe_port’:
    drivers/parport/parport_pc.c:1579: warning: array subscript is above array bounds
    
    The patch also fixes a few other array bugs, which the compiler was
    unable to find. Coding style violations are also fixed.
    Signed-off-by: default avatarMichael Buesch <mb@bu3sch.de>
    Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    73e0d48b
parport_pc.c 94.7 KB