mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
UPSTREAM: scsi: ufs: ufshpb: Remove redundant initialization of variable 'lba'
The variable 'lba' is being initialized with a value that is never read, it
is being updated later on. The assignment is redundant and can be removed.
Link: https://lore.kernel.org/r/20210804133241.113509-1-colin.king@canonical.com
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Addresses-Coverity: ("Unused value")
Bug: 204438323
(cherry picked from commit 102851fc9a)
Change-Id: Ib32be0785fe1dba67f356587334d02843a7c2e0a
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
committed by
Bart Van Assche
parent
c1871d31d6
commit
7da289ada7
@@ -374,7 +374,7 @@ static void ufshcd_add_uic_command_trace(struct ufs_hba *hba,
|
||||
static void ufshcd_add_command_trace(struct ufs_hba *hba, unsigned int tag,
|
||||
enum ufs_trace_str_t str_t)
|
||||
{
|
||||
u64 lba = -1;
|
||||
u64 lba;
|
||||
u8 opcode = 0, group_id = 0;
|
||||
u32 intr, doorbell;
|
||||
struct ufshcd_lrb *lrbp = &hba->lrb[tag];
|
||||
|
||||
Reference in New Issue
Block a user