]> git.baikalelectronics.ru Git - kernel.git/commit
ncr5380: Cleanup TAG_NEXT and TAG_NONE macros
authorFinn Thain <fthain@telegraphics.com.au>
Wed, 12 Nov 2014 05:11:53 +0000 (16:11 +1100)
committerChristoph Hellwig <hch@lst.de>
Thu, 20 Nov 2014 08:11:05 +0000 (09:11 +0100)
commit53987c78de2fe3f026d7bc42002c01cf043da7fe
treecb4066631e701617bc35131231469e2c8c343ccf
parent9b19281c2ea0f2ad3564a86686906db27cb5027e
ncr5380: Cleanup TAG_NEXT and TAG_NONE macros

Both atari_NCR5380.c and sun3_NCR5380.c core drivers #undef TAG_NONE and
then redefine it. But the original definition is unused because NCR5380.c
lacks support for tagged queueing. So just define it once.

The TAG_NEXT macro only appears in the arguments to NCR5380_select() calls.
But that routine doesn't use its tag argument as the tag was already
assigned in NCR5380_main(). So remove the unused argument and the macro.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/NCR5380.c
drivers/scsi/NCR5380.h
drivers/scsi/atari_NCR5380.c
drivers/scsi/sun3_NCR5380.c