lkml.org 
[lkml]   [2017]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] net: usb: asix_devices: fix missing return code check on call to asix_write_medium_mode
From
From: Colin King <colin.king@canonical.com>
Date: Tue, 28 Feb 2017 11:58:22 +0000

> From: Colin Ian King <colin.king@canonical.com>
>
> The call to asix_write_medium_mode is not updating the return code ret
> and yet ret is being checked for an error. Fix this by assigning ret to
> the return code from the call asix_write_medium_mode.
>
> Detected by CoverityScan, CID#1357148 ("Logically Dead Code")
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Applied.

\
 
 \ /
  Last update: 2017-03-01 18:54    [W:0.034 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site