diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2010-08-05 13:17:10 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-08-06 11:56:03 -0400 |
commit | 26845f585fad66dc23d87dad89d403cd64b48780 (patch) | |
tree | 23004a015952d0d13ae6a4338ba0ec874161ca6e /drivers/scsi | |
parent | aab7a8fd19d0c2f7fcac4d07616899655e326dfe (diff) |
[SCSI] remove fake "address-of" expression
Fake "address-of" expressions that evaluate to NULL generally confuse
readers and can provoke compiler warnings. This patch (as1411)
removes one such fake expression introduced by:
commit db5bd1e0b505c54ff492172ce4abc245cf6cd639
Author: Alan Stern <stern@rowland.harvard.edu>
Date: Thu Jun 17 10:36:49 2010 -0400
[SCSI] convert to the new PM framework
using an "#ifdef" in its place.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/scsi_priv.h | 2 | ||||
-rw-r--r-- | drivers/scsi/scsi_sysfs.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h index 026295e2c539..b4056d14f812 100644 --- a/drivers/scsi/scsi_priv.h +++ b/drivers/scsi/scsi_priv.h | |||
@@ -148,8 +148,6 @@ static inline void scsi_netlink_exit(void) {} | |||
148 | /* scsi_pm.c */ | 148 | /* scsi_pm.c */ |
149 | #ifdef CONFIG_PM_OPS | 149 | #ifdef CONFIG_PM_OPS |
150 | extern const struct dev_pm_ops scsi_bus_pm_ops; | 150 | extern const struct dev_pm_ops scsi_bus_pm_ops; |
151 | #else /* CONFIG_PM_OPS */ | ||
152 | #define scsi_bus_pm_ops (*NULL) | ||
153 | #endif | 151 | #endif |
154 | #ifdef CONFIG_PM_RUNTIME | 152 | #ifdef CONFIG_PM_RUNTIME |
155 | extern void scsi_autopm_get_target(struct scsi_target *); | 153 | extern void scsi_autopm_get_target(struct scsi_target *); |
diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index 562fb3bce261..c3f67373a4f8 100644 --- a/drivers/scsi/scsi_sysfs.c +++ b/drivers/scsi/scsi_sysfs.c | |||
@@ -381,7 +381,9 @@ struct bus_type scsi_bus_type = { | |||
381 | .name = "scsi", | 381 | .name = "scsi", |
382 | .match = scsi_bus_match, | 382 | .match = scsi_bus_match, |
383 | .uevent = scsi_bus_uevent, | 383 | .uevent = scsi_bus_uevent, |
384 | #ifdef CONFIG_PM_OPS | ||
384 | .pm = &scsi_bus_pm_ops, | 385 | .pm = &scsi_bus_pm_ops, |
386 | #endif | ||
385 | }; | 387 | }; |
386 | EXPORT_SYMBOL_GPL(scsi_bus_type); | 388 | EXPORT_SYMBOL_GPL(scsi_bus_type); |
387 | 389 | ||