Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

x86/simplefb: Use PTR_ERR_OR_ZERO

parent e8d95ce9
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -88,8 +88,5 @@ __init int create_simplefb(const struct screen_info *si,

	pd = platform_device_register_resndata(NULL, "simple-framebuffer", 0,
					       &res, 1, mode, sizeof(*mode));
	if (IS_ERR(pd))
		return PTR_ERR(pd);

	return 0;
	return PTR_ERR_OR_ZERO(pd);
}