From: Sascha Wildner Date: Tue, 19 Sep 2017 18:24:03 +0000 (+0200) Subject: boot/loader: Fix the 'crc' command to the intended code. X-Git-Tag: v5.1.0~89 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/eba634479674c1185dc8b91853bfdb2a433f31ab boot/loader: Fix the 'crc' command to the intended code. It doesn't change the result, but fixes a cppcheck warning. Reported-by: dcb Fix-submitted-by: Lubos Boucek Dragonfly-bug: --- diff --git a/sys/boot/common/module.c b/sys/boot/common/module.c index 449e64dede..24ff89ea61 100644 --- a/sys/boot/common/module.c +++ b/sys/boot/common/module.c @@ -251,7 +251,7 @@ command_crc(int argc, char *argv[]) name, strerror(errno)); break; } - if (got == 0) + if (crc == 0) crc = iscsi_crc32(buf, got); else crc = iscsi_crc32_ext(buf, got, crc);