diff options
author | Reddy, Sreekanth <Sreekanth.Reddy@lsi.com> | 2013-02-26 13:06:12 +0100 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-06-24 21:55:34 +0200 |
commit | c3a634bf78242177fba9c85deb709e7b63ed0ef1 (patch) | |
tree | 859157d555153bd39a44df2bcd0358e9428b0a13 /drivers/scsi/mpt2sas | |
parent | [SCSI] mpt2sas: Bump driver vesion to v15.100.00.00 (diff) | |
download | linux-c3a634bf78242177fba9c85deb709e7b63ed0ef1.tar.xz linux-c3a634bf78242177fba9c85deb709e7b63ed0ef1.zip |
[SCSI] mpt2sas: fix for unused variable 'event_data' warning
If CONFIG_SCSI_MPT2SAS_LOGGING is undefined, then these warnings are emitted
drivers/scsi/mpt2sas/mpt2sas_scsih.c: In function '_scsih_sas_broadcast_primitive_event'
drivers/scsi/mpt2sas/mpt2sas_scsih.c:5810:40: warning: unused variable 'event_data'
Use pr_info() function instead of dewtprintk().
Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/mpt2sas')
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_scsih.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c index c78216c83bf8..51004768d0f5 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c +++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c @@ -5815,9 +5815,10 @@ _scsih_sas_broadcast_primitive_event(struct MPT2SAS_ADAPTER *ioc, u8 task_abort_retries; mutex_lock(&ioc->tm_cmds.mutex); - dewtprintk(ioc, printk(MPT2SAS_INFO_FMT "%s: enter: phy number(%d), " - "width(%d)\n", ioc->name, __func__, event_data->PhyNum, - event_data->PortWidth)); + pr_info(MPT2SAS_FMT + "%s: enter: phy number(%d), width(%d)\n", + ioc->name, __func__, event_data->PhyNum, + event_data->PortWidth); _scsih_block_io_all_device(ioc); |