mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
scsi: ufs: core: Declare tx_lanes witout initialization
A value of an attribute will be initialized at ufshcd_dme_get_attr(). There is no need to initialize a tx_lanes. Signed-off-by: Wonkon Kim <wkon.kim@samsung.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Link: https://patch.msgid.link/20251020061539.28661-3-wkon.kim@samsung.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
6fe4c679dd
commit
35bc3c8ee3
|
|
@ -4999,7 +4999,7 @@ EXPORT_SYMBOL_GPL(ufshcd_hba_enable);
|
|||
|
||||
static int ufshcd_disable_tx_lcc(struct ufs_hba *hba, bool peer)
|
||||
{
|
||||
int tx_lanes = 0, i, err = 0;
|
||||
int tx_lanes, i, err = 0;
|
||||
|
||||
if (!peer)
|
||||
ufshcd_dme_get(hba, UIC_ARG_MIB(PA_CONNECTEDTXDATALANES),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user