Re: [PATCH] media: uvcvideo: drop useless assignment in uvc_parse_format()
Sergey Shtylyov <[email protected]>
| Newsgroups | org.kernel.vger.linux-media |
|---|---|
| Message-ID | <[email protected]> |
On 8/20/26 11:11 PM, Sergey Shtylyov wrote: > Close to the end of uvc_parse_format(), the parameter buflen is decremented > (again) but that statement seems pointless as buflen isn't used afterwards. > Drop the useless assignment (gcc doesn't generate any code for it anyways). > > Found by Linux Verification Center (linuxtesting.org) with the Svace static > analysis tool. > > Signed-off-by: Sergey Shtylyov <[email protected]> Duh, forgot to add that the patch is against the next branch of the linuxtv.org/media.git repo! [...] MBR, Sergey