summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2016-02-15 21:56:42 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-02-16 13:12:41 +0100
commit0c717d0f9cb46259dce5272705adce64a2d646d9 (patch)
treee2b8424dd7931c98f730720e7062251bdf6b84fd /fs/nfsd
parentc88c395f4a6485f23f81e385c79945d68bcd5c5d (diff)
downloadop-kernel-dev-0c717d0f9cb46259dce5272705adce64a2d646d9.zip
op-kernel-dev-0c717d0f9cb46259dce5272705adce64a2d646d9.tar.gz
PM / OPP: Initialize regulator pointer to an error value
We are currently required to do two checks for regulator pointer: IS_ERR() and IS_NULL(). And multiple instances are reported, about both of these not being used consistently and so resulting in crashes. Fix that by initializing regulator pointer with an error value and checking it only against an error. This makes code more consistent and more efficient. Fixes: 7d34d56ef334 (PM / OPP: Disable OPPs that aren't supported by the regulator) Reported-and-tested-by: Jon Hunter <jonathanh@nvidia.com> Reported-and-tested-by: Tony Lindgren <tony@atomide.com> Reported-and-tested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> [ rjw: Initialize to -ENXIO ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'fs/nfsd')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud