mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user