Skip to content

Commit

Permalink
x86, msr: Use PTR_ERR_OR_ZERO
Browse files Browse the repository at this point in the history
Replace IS_ERR/PTR_ERR

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Link: http://lkml.kernel.org/r/1413576099-27059-1-git-send-email-fabf@skynet.be
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
  • Loading branch information
Fabian Frederick authored and H. Peter Anvin committed Oct 17, 2014
1 parent 76ef0db commit cba0fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/msr.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static int msr_device_create(int cpu)

dev = device_create(msr_class, NULL, MKDEV(MSR_MAJOR, cpu), NULL,
"msr%d", cpu);
return IS_ERR(dev) ? PTR_ERR(dev) : 0;
return PTR_ERR_OR_ZERO(dev);
}

static void msr_device_destroy(int cpu)
Expand Down

0 comments on commit cba0fdb

Please sign in to comment.