From: Johannes Berg Date: Wed, 19 Nov 2014 17:51:55 +0000 (+0100) Subject: mac80211-hwsim: remove unnecessary hwname check X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~134^2~2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b67e01fc0c4f7759a3e6e75fdcf17195daa482e;p=pandora-kernel.git mac80211-hwsim: remove unnecessary hwname check The hwname will always be set if idx is negative (as it's a u32 read into an s64 it can't overflow either) so we can remove the unnecessary check for hwname being non-NULL. This was reported by smatch. Signed-off-by: Johannes Berg --- Reading git-diff-tree failed