Merge tag 'memcpy-v5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees...
[linux-2.6-microblaze.git] / drivers / scsi / aha1542.c
index f0e8ae9..cf7bba2 100644 (file)
@@ -206,7 +206,6 @@ static int makecode(unsigned hosterr, unsigned scsierr)
 
 static int aha1542_test_port(struct Scsi_Host *sh)
 {
-       u8 inquiry_result[4];
        int i;
 
        /* Quick and dirty test for presence of the card. */
@@ -240,7 +239,7 @@ static int aha1542_test_port(struct Scsi_Host *sh)
        for (i = 0; i < 4; i++) {
                if (!wait_mask(STATUS(sh->io_port), DF, DF, 0, 0))
                        return 0;
-               inquiry_result[i] = inb(DATA(sh->io_port));
+               (void)inb(DATA(sh->io_port));
        }
 
        /* Reading port should reset DF */