lkml.org 
[lkml]   [2018]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: linux-4.18-rc8/tools/hv/hv_kvp_daemon.c:289: dead code block ?
Date


> -----Original Message-----
> From: David Binderman <dcb314@hotmail.com>
> Sent: Monday, August 6, 2018 1:08 AM
> To: KY Srinivasan <kys@microsoft.com>; Haiyang Zhang
> <haiyangz@microsoft.com>; Stephen Hemminger
> <sthemmin@microsoft.com>; devel@linuxdriverproject.org; linux-
> kernel@vger.kernel.org
> Subject: linux-4.18-rc8/tools/hv/hv_kvp_daemon.c:289: dead code block ?
>
>
> 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) {

Thank you! We will fix the issue.

K. Y
>
> Regards
>
> David Binderman

\
 
 \ /
  Last update: 2018-08-06 17:28    [W:0.036 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site