From: Kalle Valo Date: Thu, 31 Dec 2015 15:12:46 +0200 Subject: [ath9k-devel] [PATCH] ath9k_htc: fix handling return value of ath9k_hw_calibrate In-Reply-To: <1450087564-28441-4-git-send-email-a.hajda@samsung.com> (Andrzej Hajda's message of "Mon, 14 Dec 2015 11:06:01 +0100") References: <1450087564-28441-1-git-send-email-a.hajda@samsung.com> <1450087564-28441-4-git-send-email-a.hajda@samsung.com> Message-ID: <87ege2oj75.fsf@kamboji.qca.qualcomm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Andrzej Hajda writes: > The function can return negative values in case of error. > Its result should be then tested for such case. > > The problem has been detected using proposed semantic patch > scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2046107 > > Signed-off-by: Andrzej Hajda Applied to ath.git, thanks. -- Kalle Valo