linux-4.18-rc8/tools/hv/hv_kvp_daemon.c:289: dead code block ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello there,

linux-4.18-rc8/tools/hv/hv_kvp_daemon.c:282] -> [linux-4.18-rc8/tools/hv/hv_kvp_daemon.c:289]: (warning) Opposite inner 'if' condition leads to a dead code block.

Source code is

       for (i = 0; i < num_records; i++) {
                if (memcmp(key, record[i].key, key_size))
                        continue;
                /*
                 * Found a match; just move the remaining
                 * entries up.
                 */
                if (i == num_records) {

Regards

David Binderman
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux