ALUA checkpatch fix

Avoid that checkpatch complains about strict_strtoul().

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4850 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2013-05-15 05:43:24 +00:00
parent aa837abf0f
commit 59c3619e85

View File

@@ -5092,7 +5092,11 @@ static int scst_tg_preferred_store_work_fn(struct scst_sysfs_work_item *w)
TRACE_ENTRY();
cmd = w->buf;
tg = container_of(w->kobj, struct scst_target_group, kobj);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)
res = kstrtoul(cmd, 0, &preferred);
#else
res = strict_strtoul(cmd, 0, &preferred);
#endif
if (res)
goto out;
res = -EINVAL;