diff options
author | Arnd Bergmann <[email protected]> | 2016-01-27 16:57:22 +0100 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2016-02-23 21:27:02 -0500 |
commit | ec54adfb2422855e3e69592ca95cd28dca9a3f01 (patch) | |
tree | 9eb5859c1db90d0e1127b1a0b02f22dabc9e49d2 /drivers/fpga/fpga-mgr.c | |
parent | 860cd9c07661f767dc2ea1fb2f054fcc02a199c5 (diff) |
scsi: aha1542: avoid uninitialized variable warnings
Gcc incorrectly detects that two variables in aha1542_queuecommand might
be used without an initialization:
scsi/aha1542.c: In function 'aha1542_queuecommand':
scsi/aha1542.c:382:16: error: 'cptr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
scsi/aha1542.c:379:11: error: 'sg_count' may be used uninitialized in this function [-Werror=maybe-uninitialized]
The only user of these is doing the same check that the assigment has,
so it is actually guaranteed to work. Adding an "else" clause with a
fake initialization shuts up the warning.
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions