Thread (13 messages) flat view 13 messages, 4 authors, 12d ago

Re: [PATCH] r8152: simplify loops in generic_ocp_{read,write}()

From: Sergey Shtylyov <hidden>
Date: 2026-08-22 20:26:34
Also in: linux-usb

On 8/22/26 11:21 PM, Sergey Shtylyov wrote:
In generic_ocp_{read,write}(), the *while* loops look very strange:
the last iteration is executed differently to the prior ones, doing
some useless assignments before *break*. Move the code for the last
iteration out of the loop bodies, dropping the pointless statements
as well...

Found by Linux Verification Center (linuxtesting.org) with the Svace
static analysis tool.

Signed-off-by: Sergey Shtylyov <redacted>
[...]

   And of course I forgot [net-next] in the subject... :-)

MBR, Sergey
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help