]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: rtl8188eu: unneeded NULL check
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Fri, 7 Nov 2014 11:20:46 +0000 (16:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 17:47:29 +0000 (09:47 -0800)
commitd48037f9169f653d1124eb75157293d875e7e57f
tree018494c15b8196f93139af9fe86bd8c9d861f876
parentc78a964c251bb82aa3454440e082b91a836105ae
staging: rtl8188eu: unneeded NULL check

before these NULL checks we are already checking it for NULL, and if
it is NULL then we are jumping to the error label and handling
the error before returning.
So we can reach this part of the code only if the variable is known
to be not NULL, and if we already know that it is not NULL, then no
need to check it again.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_xmit.c
drivers/staging/rtl8188eu/hal/rtl8188e_dm.c