diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2019-01-30 16:07:34 +0900 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-02-04 22:07:24 -0500 |
commit | d7e6db20944c8fb26073bc3ba9d5328992b82858 (patch) | |
tree | 2fcc6f26bb7b30d006713d8129c3b5ee26d0ac9c /drivers/scsi/FlashPoint.c | |
parent | 27752647f88a1b03019e03f21f32b60452af7d4b (diff) |
scsi: sd: Improve sd_print_capacity()
There is no need to call twice string_get_size() when the capacity messages
are not going to be printed. Reverse the message output condition to return
early and avoid executing string_get_size() when it is not necessary.
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/FlashPoint.c')
0 files changed, 0 insertions, 0 deletions