Merge tag 'reset-fixes-for-v5.2' of git://git.pengutronix.de/git/pza/linux into arm...
authorOlof Johansson <olof@lixom.net>
Thu, 4 Jul 2019 14:04:13 +0000 (07:04 -0700)
committerOlof Johansson <olof@lixom.net>
Thu, 4 Jul 2019 14:04:15 +0000 (07:04 -0700)
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>
drivers/reset/core.c

index 21b9bd5692e1ff46251e8c4ce81efc8030c25cda..213ff40dda110e42a641dedd01d79bec80b56b95 100644 (file)
@@ -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) {