]> git.karo-electronics.de Git - linux-beck.git/commit
Staging: rtl8188eu: Removed unneeded code.
authorAdrian Remonda <adrianremonda@gmail.com>
Sun, 10 Aug 2014 18:39:57 +0000 (20:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:23 +0000 (12:23 -0700)
commit4246e490b59bf68839f75fa4354e099105ff927a
tree4a1609b096e2c4ae680d2b47fcf236c10fa8b176
parent66ed681a304f2971f85b9d8c58d4c35f340e1af1
Staging: rtl8188eu: Removed unneeded code.

This patch removes some unneeded code.
1) kzalloc() allocates 4 extra bytes so that we can align the return
   value.  But actually the return value is already aligned so we can
   remove the + 4 and the call to N_BYTE_ALIGMENT().
2) The memset() isn't needed because kzalloc() zeroes the allocation.

Suggested-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Adrian Remonda <adrianremonda@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c