From: Kalle Valo Date: Sun, 10 Mar 2013 05:51:39 +0000 (+0200) Subject: ath6kl: remove false check from ath6kl_rx() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~390^2^2~29^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15ac0778a65322c8c39eb2a6636218554d348690;p=pandora-kernel.git ath6kl: remove false check from ath6kl_rx() Dan found a check from ath6kl_rx() which doesn't make any sense at all: " 1327 if (status || !(skb->data + HTC_HDR_LENGTH)) { ^^^^^^^^^^^^^^^^^^^^^^^^^^ skb->data is a pointer. This pointer math is always going to be false. Should it be testing "packet->act_len < HTC_HDR_LENGTH" or something?" I don't know what the check really was supposed to do, but I think Dan's guess is right. Fix it accordingly. Reported-by: Dan Carpenter Signed-off-by: Kalle Valo --- Reading git-diff-tree failed