RE: [PATCH] misc: mic: dead code removal and minor cleanup

From: Dixit, Ashutosh
Date: Sat Nov 09 2013 - 00:07:05 EST


> -----Original Message-----
> From: Michael Opdenacker [mailto:michael.opdenacker@xxxxxxxxxxxxxxxxxx]
> Sent: Friday, November 08, 2013 8:14 PM
> Subject: [PATCH] misc: mic: dead code removal and minor cleanup
>
> This removes the below test in drivers/misc/mic/card/mic_virtio.c:
>
> if (!retry) {
> ...
> }
>
> This is dead code because the "retry" variable was set to 100
> earlier in the same function.
>
> This also removes dev_dbg statements to print the value of this variable.
> That's not interesting to print the value of a variable which value is
> always the same.

Hi Michael,

Thanks for your mail. However, the dead code has resulted from
another bug in the code, we should be decrementing retry instead
of i. The same bug occurs in several other places in the code too.

So I would say don't apply this patch. We are planning a series of
patches to fix other issues in the code when the 3.13 merge window
closes and will include this fix too and include you in "Reported-by".

Thanks,
Ashutosh

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/