From: Emmanuel Grumbach Date: Sun, 22 Dec 2013 08:55:47 +0000 (+0200) Subject: iwlwifi: mvm: fix harmless smatch / coccinelle warnings X-Git-Tag: v3.14-rc1~94^2~238^2^2~83^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e898f1bd4415699e826c78893a9622a11bd01a6;p=pandora-kernel.git iwlwifi: mvm: fix harmless smatch / coccinelle warnings Don't check if mvm->fw->cs is NULL since it can't be. cs is an array member of iwl_fw, it can't be NULL. Use memset(ptr, 0, sizeof(*ptr)); instead of memset(ptr, 0, sizeof(struct ptr_type)); Signed-off-by: Emmanuel Grumbach --- Reading git-diff-tree failed