linux-4.6/net/kcm/kcmsock.c:1508: bad if test ?

From: David Binderman
Date: Mon May 16 2016 - 14:40:49 EST


Hello there,

linux-4.6/net/kcm/kcmsock.c:1508]: (style) Checking if unsigned
variable 'copied' is less than zero.

Source code is

if (copied < 0) {

but

size_t copied;

Suggest code rework.


Regards

David Binderman