From: Chen Gang Date: Thu, 16 May 2013 01:37:32 +0000 (+0800) Subject: staging: wlags49_h2: fix up "205179d staging: wlags49_h2: strncpy, need checking... X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~695 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7b7691f52547eeabbdab70b00e337a7c38acb1f;p=pandora-kernel.git staging: wlags49_h2: fix up "205179d staging: wlags49_h2: strncpy, need checking the memory length" for avoiding warnings Type of 'probe_rsp->rawData[1]' is 'hcf_8' which is 'u8', it will compare with 'int', so use min_t() to cast to 'u8' to avoid related warning. If use min(), it has '(void) (&_min1 == &_min2);', so if no type cast, the compiler will report 'pointer types lacks a cast': drivers/staging/wlags49_h2/wl_main.c:3174:122: warning: comparison of distinct pointer types lacks a cast [enabled by default] Signed-off-by: Chen Gang Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed