]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rts5208: fix missing error check on call to rtsx_write_register
authorColin Ian King <colin.king@canonical.com>
Mon, 2 Jul 2018 13:27:35 +0000 (14:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2018 15:37:31 +0000 (17:37 +0200)
commitb4396be462fd66dc2309c213310d16e2e21a509e
tree3b6b7867156767dfa458939e1d81f17599bf27b5
parentdcc0cfa17030c294e818db3a75c518c98f0c4c8d
staging: rts5208: fix missing error check on call to rtsx_write_register

Currently the check on error return from the call to rtsx_write_register
is checking the error status from the previous call. Fix this by adding
in the missing assignment of retval.

Detected by CoverityScan, CID#709877

Fixes: e42b622595fa ("staging: rts5208: add support for rts5208 and rts5288")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/sd.c