]> git.baikalelectronics.ru Git - kernel.git/commit
device property: Drop redundant NULL checks
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 26 Oct 2021 16:29:54 +0000 (19:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Oct 2021 17:14:01 +0000 (19:14 +0200)
commite69f1cef1da23c48a55b755789207041081a2c0f
tree23f199e3fcbfc6117c78e3355041353b0a2607f5
parent70b7f9d457f3a4797489670c697ac12bd62cd73a
device property: Drop redundant NULL checks

In cases when functions are called via fwnode operations,
we already know that this is software node we are dealing
with, hence no need to check if it's NULL, it can't be,

Reported-by: YE Chengfeng <cyeaa@connect.ust.hk>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20211026162954.89811-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/swnode.c