Re: [PATCH] scsi: qla2xxx: Remove unnecessary self assignment

2018-10-16 Thread Martin K. Petersen
Nathan, > Clang warns when a variable is assigned to itself. > > drivers/scsi/qla2xxx/qla_mbx.c:1514:4: warning: explicitly assigning > value of variable of type 'uint64_t' (aka 'unsigned long long') to > itself [-Wself-assign] > l = l; > ~ ^ ~ > 1 warning generated. Applied to

[PATCH] scsi: qla2xxx: Remove unnecessary self assignment

2018-09-20 Thread Nathan Chancellor
Clang warns when a variable is assigned to itself. drivers/scsi/qla2xxx/qla_mbx.c:1514:4: warning: explicitly assigning value of variable of type 'uint64_t' (aka 'unsigned long long') to itself [-Wself-assign] l = l; ~ ^ ~ 1 warning generated. This construct is usually used to avo