Skip to content

Commit 35bc3c8

Browse files
wkk-ssmartinkpetersen
authored andcommitted
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 <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 6fe4c67 commit 35bc3c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ufs/core/ufshcd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4999,7 +4999,7 @@ EXPORT_SYMBOL_GPL(ufshcd_hba_enable);
49994999

50005000
static int ufshcd_disable_tx_lcc(struct ufs_hba *hba, bool peer)
50015001
{
5002-
int tx_lanes = 0, i, err = 0;
5002+
int tx_lanes, i, err = 0;
50035003

50045004
if (!peer)
50055005
ufshcd_dme_get(hba, UIC_ARG_MIB(PA_CONNECTEDTXDATALANES),

0 commit comments

Comments
 (0)