]> git.karo-electronics.de Git - linux-beck.git/commit
staging: rtl8712: Remove unnecessary ret variable
authorJoseph Bisch <joseph.bisch@gmail.com>
Sun, 14 Feb 2016 21:57:27 +0000 (16:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:49:09 +0000 (16:49 -0800)
commitaf09054958ba2a17586a463eecafb6f0660d4cc0
treeef342178bce842c68260d95ce07b955890219002
parentf7099ad7bd35c56795fb50f5026b7040abac62da
staging: rtl8712: Remove unnecessary ret variable

Since the variable ret is set at the beginning of the function and
never changes its value, we can just return the value it was set to.

Found using coccinelle with misc/returnvar.cocci.

Signed-off-by: Joseph Bisch <joseph.bisch@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/os_intfs.c