Re: [PATCH] net: wan: wanxl.c: Cleaning up declaration of a while loop

2014-06-07 Thread Krzysztof Halasa
Rickard Strandqvist writes: > Unusual declaration of a while loop. > However, believe you also want to make sure that the pointer is not NULL Not really. The code is meant to do exactly what it currently does - set variable desc and then check desc->stat. All rx_descs are at this point already i

[PATCH] net: wan: wanxl.c: Cleaning up declaration of a while loop

2014-06-07 Thread Rickard Strandqvist
Unusual declaration of a while loop. However, believe you also want to make sure that the pointer is not NULL This was partly found using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/net/wan/wanxl.c |2 +- 1 file changed, 1 insertion(+), 1 d