From: Raja Mani Date: Tue, 19 Jul 2011 13:57:30 +0000 (+0530) Subject: ath6kl: Print bad trailer data only when htc fails to parse trailer info X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2588f554f0adaba0c834d238596335cb5606e33a;p=linux-beck.git ath6kl: Print bad trailer data only when htc fails to parse trailer info Signed-off-by: Raja Mani Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath6kl/htc.c b/drivers/net/wireless/ath/ath6kl/htc.c index 836797947805..9d9948ed18df 100644 --- a/drivers/net/wireless/ath/ath6kl/htc.c +++ b/drivers/net/wireless/ath/ath6kl/htc.c @@ -1400,8 +1400,9 @@ static int htc_proc_trailer(struct htc_target *target, len -= record->len; } - ath6kl_dbg_dump(ATH6KL_DBG_RAW_BYTES, "BAD Recv Trailer", - orig_buf, orig_len); + if (status) + ath6kl_dbg_dump(ATH6KL_DBG_RAW_BYTES, "BAD Recv Trailer", + orig_buf, orig_len); return status; }