From: Bruno Prémont Date: Mon, 30 Jul 2012 19:38:54 +0000 (+0200) Subject: HID: picoLCD: satify some checkpatch warnings X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~104^2~2^4~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baacf9c5d2e631e7c940527ad670c8d4b019da81;p=pandora-kernel.git HID: picoLCD: satify some checkpatch warnings WARNING: static const char * array should probably be static const char * const +static const char *error_codes[] = { WARNING: min() should probably be min_t(size_t, 20, s) + raw_data[2] = min((size_t)20, s); Note: the second min_t suggestion cannot be followed because GCC is not smart enough to track constants through it and make copy_from_user_overflow() check happy. WARNING: min() should probably be min_t(u8, 20, raw_data[2]) + if (copy_from_user(raw_data+3, u, min((u8)20, raw_data[2]))) return -EFAULT; Signed-off-by: Bruno Prémont Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed