Commit cba0fdbc authored by Fabian Frederick's avatar Fabian Frederick Committed by H. Peter Anvin
Browse files

x86, msr: Use PTR_ERR_OR_ZERO

parent 76ef0db7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)