summaryrefslogtreecommitdiffstats
path: root/drivers/reset
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2019-07-04 07:04:13 -0700
committerOlof Johansson <olof@lixom.net>2019-07-04 07:04:15 -0700
commitd9deea28a896e01f6593b8a5c18ccff530620cb2 (patch)
tree2379960c9f17072c863929fd7c18e739014f7c12 /drivers/reset
parentb27aca2e555f87d384cdf60059dd1a1b61c215ef (diff)
parenta71dcd3757e29cc8b43383ff18595d707cf08345 (diff)
downloadlinux-d9deea28a896e01f6593b8a5c18ccff530620cb2.tar.bz2
Merge tag 'reset-fixes-for-v5.2' of git://git.pengutronix.de/git/pza/linux into arm/drivers
Reset controller fix for v5.2 This tag removes a redundant device pointer NULL check from __reset_control_get_from_lookup to fix a static code checker warning. * tag 'reset-fixes-for-v5.2' of git://git.pengutronix.de/git/pza/linux: reset: remove redundant null check on pointer dev Link: https://lore.kernel.org/r/1562236626.6641.13.camel@pengutronix.de Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/reset')
-rw-r--r--drivers/reset/core.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/reset/core.c b/drivers/reset/core.c
index 21b9bd5692e1..213ff40dda11 100644
--- a/drivers/reset/core.c
+++ b/drivers/reset/core.c
@@ -690,9 +690,6 @@ __reset_control_get_from_lookup(struct device *dev, const char *con_id,
const char *dev_id = dev_name(dev);
struct reset_control *rstc = NULL;
- if (!dev)
- return ERR_PTR(-EINVAL);
-
mutex_lock(&reset_lookup_mutex);
list_for_each_entry(lookup, &reset_lookup_list, list) {