Re: [PATCH] stmmac: Fix type of local variable in stmmac_xmit

2016-03-04 Thread David Miller
From: Andrzej Hajda Date: Fri, 04 Mar 2016 08:19:04 +0100 > Variable entry holds result of jumbo_frm callback. It can be negative, > so the variable should be signed. The patch changes also type of related > first_entry variable to make code compact and coherent. > > The problem has been detecte

[PATCH] stmmac: Fix type of local variable in stmmac_xmit

2016-03-03 Thread Andrzej Hajda
Variable entry holds result of jumbo_frm callback. It can be negative, so the variable should be signed. The patch changes also type of related first_entry variable to make code compact and coherent. The problem has been detected using patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci