Thread (2 messages) flat view 2 messages, 2 authors, 10d ago

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

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-10 02:31:10
Also in: linux-usb

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski [off-list ref]:

On Mon, 7 Sep 2026 22:46:32 +0300 you wrote:
In generic_ocp_{read,write}(), the *while* loops look very strange:
the last iteration is implemented differently to the previous ones
(doing some useless assignments before *break*) for no good reason.
Merge the different iterations into one, using the local variables
in the loop bodies...

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

[...]
Here is the summary with links:
  - [net-next,v3] r8152: simplify loops in generic_ocp_{read,write}()
    https://git.kernel.org/netdev/net-next/c/f217004a40c4

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

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