mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-25 20:25:16 +00:00
scsi: megaraid: Remove set but unused variable
In mega_build_cmd(), the variable epthru is set but not used. Remove it to avoid a compiler warning. Link: https://lore.kernel.org/r/20200706123349.451915-1-damien.lemoal@wdc.com Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
97eec79f6c
commit
2a6576d29d
@ -517,7 +517,6 @@ mega_get_ldrv_num(adapter_t *adapter, struct scsi_cmnd *cmd, int channel)
|
|||||||
static scb_t *
|
static scb_t *
|
||||||
mega_build_cmd(adapter_t *adapter, struct scsi_cmnd *cmd, int *busy)
|
mega_build_cmd(adapter_t *adapter, struct scsi_cmnd *cmd, int *busy)
|
||||||
{
|
{
|
||||||
mega_ext_passthru *epthru;
|
|
||||||
mega_passthru *pthru;
|
mega_passthru *pthru;
|
||||||
scb_t *scb;
|
scb_t *scb;
|
||||||
mbox_t *mbox;
|
mbox_t *mbox;
|
||||||
@ -905,7 +904,7 @@ mega_build_cmd(adapter_t *adapter, struct scsi_cmnd *cmd, int *busy)
|
|||||||
|
|
||||||
if( adapter->support_ext_cdb ) {
|
if( adapter->support_ext_cdb ) {
|
||||||
|
|
||||||
epthru = mega_prepare_extpassthru(adapter, scb, cmd,
|
mega_prepare_extpassthru(adapter, scb, cmd,
|
||||||
channel, target);
|
channel, target);
|
||||||
|
|
||||||
mbox->m_out.cmd = MEGA_MBOXCMD_EXTPTHRU;
|
mbox->m_out.cmd = MEGA_MBOXCMD_EXTPTHRU;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user