PM / OPP: passing NULL to PTR_ERR()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 21 Sep 2015 16:26:02 +0000 (19:26 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 9 Oct 2015 20:17:34 +0000 (22:17 +0200)
commita6eed752f5fb40990eb28fddb2b93258fb7e3be0
tree8f70379f4e4d35cd6d20f49164a07cea9262049b
parentf59d3ee8480d30f41914cb4bed5086237e8507b0
PM / OPP: passing NULL to PTR_ERR()

The code was using PTR_ERR(NULL) which causes a static checker warning.
I have fixed up the printks and changed the return to -ENOENT.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp/cpu.c