diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2011-06-13 14:39:17 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-06-29 16:12:43 -0400 |
commit | 5db5c5052d9ec39e808386c36fa3c873d5fb0171 (patch) | |
tree | c23530ba3aec510262b739b541c7b533e61cb2ab /drivers/scsi/mac_scsi.c | |
parent | 70c26cf3277ce93af74523894700ec20cf7cf6aa (diff) |
[SCSI] mac_scsi: Remove unused variable default_instance
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>
Diffstat (limited to 'drivers/scsi/mac_scsi.c')
-rw-r--r-- | drivers/scsi/mac_scsi.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/scsi/mac_scsi.c b/drivers/scsi/mac_scsi.c index 67eb7581e430..af3a6af97cc7 100644 --- a/drivers/scsi/mac_scsi.c +++ b/drivers/scsi/mac_scsi.c | |||
@@ -215,13 +215,6 @@ static int __init mac_scsi_setup(char *str) { | |||
215 | __setup("mac5380=", mac_scsi_setup); | 215 | __setup("mac5380=", mac_scsi_setup); |
216 | 216 | ||
217 | /* | 217 | /* |
218 | * If you want to find the instance with (k)gdb ... | ||
219 | */ | ||
220 | #if NDEBUG | ||
221 | static struct Scsi_Host *default_instance; | ||
222 | #endif | ||
223 | |||
224 | /* | ||
225 | * Function : int macscsi_detect(struct scsi_host_template * tpnt) | 218 | * Function : int macscsi_detect(struct scsi_host_template * tpnt) |
226 | * | 219 | * |
227 | * Purpose : initializes mac NCR5380 driver based on the | 220 | * Purpose : initializes mac NCR5380 driver based on the |
@@ -268,10 +261,7 @@ int __init macscsi_detect(struct scsi_host_template * tpnt) | |||
268 | /* Once we support multiple 5380s (e.g. DuoDock) we'll do | 261 | /* Once we support multiple 5380s (e.g. DuoDock) we'll do |
269 | something different here */ | 262 | something different here */ |
270 | instance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata)); | 263 | instance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata)); |
271 | #if NDEBUG | 264 | |
272 | default_instance = instance; | ||
273 | #endif | ||
274 | |||
275 | if (macintosh_config->ident == MAC_MODEL_IIFX) { | 265 | if (macintosh_config->ident == MAC_MODEL_IIFX) { |
276 | mac_scsi_regp = via1+0x8000; | 266 | mac_scsi_regp = via1+0x8000; |
277 | mac_scsi_drq = via1+0xE000; | 267 | mac_scsi_drq = via1+0xE000; |