aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/device_handler/scsi_dh_hp_sw.c
diff options
context:
space:
mode:
authorHillf Danton <dhillf@gmail.com>2011-02-11 17:17:33 -0500
committerJames Bottomley <James.Bottomley@suse.de>2011-02-12 15:13:34 -0500
commit9dfeb3157e34315b8ca27d816a79358698a999ac (patch)
treee60afdfe8e8443003b1a96274a5fadf4325f5a92 /drivers/scsi/device_handler/scsi_dh_hp_sw.c
parent04b6e153b64471ff43dde82b0122e67cf491f2f5 (diff)
[SCSI] scsi_dh: cosmetic change to sizeof()
instead of doing sizeof(struct X) it's better to do sizeof(*v) where v is the variable pointing to struct X. Signed-off-by: Hillf Danton <dhillf@gmail.com> Signed-off-by: Babu Moger <babu.moger@lsi.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/device_handler/scsi_dh_hp_sw.c')
-rw-r--r--drivers/scsi/device_handler/scsi_dh_hp_sw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/device_handler/scsi_dh_hp_sw.c b/drivers/scsi/device_handler/scsi_dh_hp_sw.c
index d0363c8fa34..b479f1eef96 100644
--- a/drivers/scsi/device_handler/scsi_dh_hp_sw.c
+++ b/drivers/scsi/device_handler/scsi_dh_hp_sw.c
@@ -339,8 +339,8 @@ static int hp_sw_bus_attach(struct scsi_device *sdev)
339 unsigned long flags; 339 unsigned long flags;
340 int ret; 340 int ret;
341 341
342 scsi_dh_data = kzalloc(sizeof(struct scsi_device_handler *) 342 scsi_dh_data = kzalloc(sizeof(*scsi_dh_data)
343 + sizeof(struct hp_sw_dh_data) , GFP_KERNEL); 343 + sizeof(*h) , GFP_KERNEL);
344 if (!scsi_dh_data) { 344 if (!scsi_dh_data) {
345 sdev_printk(KERN_ERR, sdev, "%s: Attach Failed\n", 345 sdev_printk(KERN_ERR, sdev, "%s: Attach Failed\n",
346 HP_SW_NAME); 346 HP_SW_NAME);