Skip to content

Commit d9deea2

Browse files
committed
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/[email protected] Signed-off-by: Olof Johansson <[email protected]>
2 parents b27aca2 + a71dcd3 commit d9deea2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/reset/core.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,9 +690,6 @@ __reset_control_get_from_lookup(struct device *dev, const char *con_id,
690690
const char *dev_id = dev_name(dev);
691691
struct reset_control *rstc = NULL;
692692

693-
if (!dev)
694-
return ERR_PTR(-EINVAL);
695-
696693
mutex_lock(&reset_lookup_mutex);
697694

698695
list_for_each_entry(lookup, &reset_lookup_list, list) {

0 commit comments

Comments
 (0)