Skip to content

Commit

Permalink
drivers: misc: Drop unlikely before IS_ERR(_OR_NULL)
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
vireshk authored and Jiri Kosina committed Sep 29, 2015
1 parent 061eebb commit d9902d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/c2port/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ struct c2port_device *c2port_device_register(char *name,

c2dev->dev = device_create(c2port_class, NULL, 0, c2dev,
"c2port%d", c2dev->id);
if (unlikely(IS_ERR(c2dev->dev))) {
if (IS_ERR(c2dev->dev)) {
ret = PTR_ERR(c2dev->dev);
goto error_device_create;
}
Expand Down

0 comments on commit d9902d5

Please sign in to comment.