nl80211: clean up genlmsg_end uses
authorJohannes Berg <johannes.berg@intel.com>
Sat, 22 Oct 2011 17:05:51 +0000 (19:05 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Nov 2011 20:54:27 +0000 (15:54 -0500)
commit3b7b72eed19684824806b3fbefef653a180ef2b0
treedbaebde80ff0c62f2e2e19310520ad731c2f5c3c
parent028f78d43d80dcb8b1142ea38606067151dd3d51
nl80211: clean up genlmsg_end uses

genlmsg_end() cannot fail, it just returns the length
of the message. Thus, error handling for it is useless.
While removing it, I also noticed a useless variable
and removed this it as well.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c