]> git.baikalelectronics.ru Git - kernel.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)
commite114a954d17fa0db576733983e17718e1a9822bb
tree018494c15b8196f93139af9fe86bd8c9d861f876
parentd0d9447791db72bcfadf5f89eb7c5d6c768183fb
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