linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [bug report] cpufreq: scpi: remove arm_big_little dependency
@ 2018-01-22 10:48 Dan Carpenter
  2018-01-22 14:39 ` Sudeep Holla
  2018-01-22 14:41 ` [PATCH] cpufreq: scpi: fix static checker warning cdev isn't an ERR_PTR Sudeep Holla
  0 siblings, 2 replies; 5+ messages in thread
From: Dan Carpenter @ 2018-01-22 10:48 UTC (permalink / raw)
  To: Sudeep.Holla; +Cc: linux-pm

Hello Sudeep Holla,

The patch 343a8d17fa8d: "cpufreq: scpi: remove arm_big_little
dependency" from Jan 10, 2018, leads to the following static checker
warning:

	drivers/cpufreq/scpi-cpufreq.c:203 scpi_cpufreq_ready()
	warn: 'cdev' isn't an ERR_PTR

drivers/cpufreq/scpi-cpufreq.c
   198  static void scpi_cpufreq_ready(struct cpufreq_policy *policy)
   199  {
   200          struct scpi_data *priv = policy->driver_data;
   201          struct thermal_cooling_device *cdev;
   202  
   203          cdev = of_cpufreq_cooling_register(policy);
   204          if (!IS_ERR(cdev))
   205                  priv->cdev = cdev;

of_cpufreq_cooling_register() returns NULL on error.  Probably just
remove the if statement?

   206  }

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-02-08 10:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-22 10:48 [bug report] cpufreq: scpi: remove arm_big_little dependency Dan Carpenter
2018-01-22 14:39 ` Sudeep Holla
2018-01-22 14:41 ` [PATCH] cpufreq: scpi: fix static checker warning cdev isn't an ERR_PTR Sudeep Holla
2018-01-23  2:41   ` Viresh Kumar
2018-02-08 10:06     ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).