From: Luciano Coelho Date: Tue, 19 Nov 2013 14:05:56 +0000 (+0200) Subject: iwlwifi: mvm: use a cast to calculate the last seqno from the next one X-Git-Tag: v3.13-rc4~3^2~64^2^2~6^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c5da7eefce5835acfc73ebd0a4f961cdae4ae67;p=pandora-kernel.git iwlwifi: mvm: use a cast to calculate the last seqno from the next one If the next seqno returned by the firmware is 0, we return an error (-16) in the iwl_mvm_get_last_nonqos_seq() function. This is because we return an integer and don't use any casting when calculating the last seqno from the one we received. Fix this by using a cast to u16 when doing the calculation, so we return 0xfff0, as we should. Signed-off-by: Luciano Coelho Signed-off-by: Emmanuel Grumbach --- Reading git-diff-tree failed