The kbuild test bot generated the warning:
drivers/usb/gadget/function/f_sourcesink.c:1498: warning: comparison is
always false due to limited range of data type
This patch fixes it.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Amit Virdi <amit.virdi@st.com>
CC: Felipe Balbi <balbi@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
const char *page, size_t len)
{
int ret;
- u8 num;
+ u32 num;
mutex_lock(&opts->lock);
if (opts->refcnt) {
goto end;
}
- ret = kstrtou8(page, 0, &num);
+ ret = kstrtou32(page, 0, &num);
if (ret)
goto end;