]> git.baikalelectronics.ru Git - kernel.git/commit
staging: exfat: remove return and error return via a goto
authorColin Ian King <colin.king@canonical.com>
Mon, 2 Sep 2019 09:40:52 +0000 (10:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2019 07:36:07 +0000 (09:36 +0200)
commitc02261a827b91585bf8f155ffbc98eacc578eef2
treeb02674d0612b64f1e379e2ae93eceba1f5825bd7
parent894b8c5c3ac0ef75ebecfe40ca2fddc0b5d368f9
staging: exfat: remove return and error return via a goto

The return statement is incorrect, the error exit should be by
assigning ret with the error code and exiting via label out.
Thanks to Valdis KlÄ“tnieks for correcting my original fix.

Addresses-Coverity: ("Structurally dead code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190902094052.28029-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/exfat/exfat_super.c