]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8723bs: remove unused code
authorColin Ian King <colin.king@canonical.com>
Sat, 16 Mar 2019 22:26:57 +0000 (22:26 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 06:06:16 +0000 (07:06 +0100)
commit963e42ebbbc2a7d4ff9701229cd22609f7a68409
tree024d895396b7c1f843187a612572d6d5bdadb785
parent4593c7d05a644880b8fa961e8c9f8f9bb3187afc
staging: rtl8723bs: remove unused code

There are two final hunks of code that are only built
if SDIO_DYNAMIC_ALLOC_MEM is defined however this is never
defined and if it was the code would lead to dereferencing
an uninitialized pointer oldmem.  It appears that a previous
commit 2fdff60f5963 ("Staging: rtl8723bs: Remove dead code")
removed some of the dead code but not all of it. Clean this
up by removing the final hunks.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/sdio_ops.c