linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: linux-4.18-rc8/tools/hv/hv_kvp_daemon.c:289: dead code block ?
       [not found] <VI1PR08MB3342B5316CD432BB985E1A5D9C200@VI1PR08MB3342.eurprd08.prod.outlook.com>
@ 2018-08-06 15:28 ` KY Srinivasan
  0 siblings, 0 replies; only message in thread
From: KY Srinivasan @ 2018-08-06 15:28 UTC (permalink / raw)
  To: David Binderman, Haiyang Zhang, Stephen Hemminger, devel, linux-kernel



> -----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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-06 15:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <VI1PR08MB3342B5316CD432BB985E1A5D9C200@VI1PR08MB3342.eurprd08.prod.outlook.com>
2018-08-06 15:28 ` linux-4.18-rc8/tools/hv/hv_kvp_daemon.c:289: dead code block ? KY Srinivasan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).