Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers: misc: Drop unlikely before IS_ERR(_OR_NULL)

IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there
is no need to do that again from its callers. Drop it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Viresh Kumar and committed by
Jiri Kosina
d9902d59 061eebba

+1 -1
+1 -1
drivers/misc/c2port/core.c
··· 926 926 927 927 c2dev->dev = device_create(c2port_class, NULL, 0, c2dev, 928 928 "c2port%d", c2dev->id); 929 - if (unlikely(IS_ERR(c2dev->dev))) { 929 + if (IS_ERR(c2dev->dev)) { 930 930 ret = PTR_ERR(c2dev->dev); 931 931 goto error_device_create; 932 932 }