Andre Przywara c7d0fd797e 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>
2015-07-11 08:01:54 -04:00
..
2013-04-01 16:33:52 -04:00
2015-04-29 21:02:32 -06:00
2015-05-10 09:59:38 -04:00
2014-06-11 16:25:47 -04:00
2015-06-10 19:26:54 -06:00
2014-02-04 16:32:20 +01:00
2015-01-30 09:19:17 -05:00
2014-11-19 08:48:41 +01:00
2015-01-30 09:19:16 -05:00
2014-10-26 14:03:08 -04:00
2014-12-29 16:31:24 -05:00
2014-06-20 11:54:29 -06:00
2014-06-05 14:38:38 -04:00
2011-04-08 00:44:27 -04:00
2015-01-29 17:09:57 -07:00
2015-04-16 19:27:43 -06:00
2015-05-14 19:58:34 -06:00
2014-05-12 15:19:46 -04:00
2013-04-01 16:33:52 -04:00
2015-05-21 09:13:19 -04:00
2014-03-21 16:43:59 -04:00
2014-04-17 17:44:36 -04:00
2014-03-21 16:43:59 -04:00
2014-03-21 16:43:59 -04:00
2015-04-07 08:41:10 -04:00
2014-03-21 16:43:59 -04:00
2015-01-29 17:09:57 -07:00
2015-01-05 12:08:51 -05:00
2015-07-01 21:15:04 +05:30
2010-01-18 00:23:00 +01:00
2014-09-16 12:23:56 -04:00
2011-10-22 01:13:35 +02:00
2015-05-14 18:49:37 -06:00
2014-11-04 06:04:00 +01:00