diff options
author | Andre Przywara <osp@andrep.de> | 2015-07-02 00:04:23 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-07-11 12:01:54 (GMT) |
commit | c7d0fd797ec2ce3acd3cd7ed53971f431f8c6072 (patch) | |
tree | 4ac5abf8ad8ec35a7c573d6cede2e9a2fcc0c99c /post/tests.c | |
parent | 2650dbcf8a9ddfee4c5bf2d1c961c303988c9f97 (diff) | |
download | u-boot-fsl-qoriq-c7d0fd797ec2ce3acd3cd7ed53971f431f8c6072.tar.xz |
scsi: fix compiler warning with DEBUG and 48bit LBAs
Commit 2b42c9317db ("ahci: support LBA48 data reads for 2+TB drives")
introduced conditional code which triggers a warning when compiled
with DEBUG enabled:
In file included from common/cmd_scsi.c:12:0:
common/cmd_scsi.c: In function 'scsi_read':
include/common.h:109:4: warning: 'smallblks' may be used uninitialized in this function [-Wmaybe-uninitialized]
...
Since this is for debug only, take the easy way and initialize the
variable explicitly on declaration to avoid the warning.
(Fix a nearby whitespace error on the way.)
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Andre Przywara <osp@andrep.de>
Diffstat (limited to 'post/tests.c')
0 files changed, 0 insertions, 0 deletions