Skip to content

Commit

Permalink
[SCSI] mac_scsi: Remove unused variable default_instance
Browse files Browse the repository at this point in the history
This fixes:

drivers/scsi/mac_scsi.c:220:5: warning: "NDEBUG_ABORT" is not defined
drivers/scsi/mac_scsi.c:271:5: warning: "NDEBUG_ABORT" is not defined

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
  • Loading branch information
Geert Uytterhoeven authored and James Bottomley committed Jun 29, 2011
1 parent 70c26cf commit 5db5c50
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions drivers/scsi/mac_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,6 @@ static int __init mac_scsi_setup(char *str) {

__setup("mac5380=", mac_scsi_setup);

/*
* If you want to find the instance with (k)gdb ...
*/
#if NDEBUG
static struct Scsi_Host *default_instance;
#endif

/*
* Function : int macscsi_detect(struct scsi_host_template * tpnt)
*
Expand Down Expand Up @@ -268,10 +261,7 @@ int __init macscsi_detect(struct scsi_host_template * tpnt)
/* Once we support multiple 5380s (e.g. DuoDock) we'll do
something different here */
instance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata));
#if NDEBUG
default_instance = instance;
#endif


if (macintosh_config->ident == MAC_MODEL_IIFX) {
mac_scsi_regp = via1+0x8000;
mac_scsi_drq = via1+0xE000;
Expand Down

0 comments on commit 5db5c50

Please sign in to comment.