Skip to content

Commit

Permalink
edtlib: Remove unreachable code
Browse files Browse the repository at this point in the history
This fixes the following error reported by
./scripts/ci/check_compliance.py:

> 1 checks failed
> ERROR   : Test Pylint failed:
> W0101:Unreachable code (unreachable)
> File:scripts/dts/python-devicetree/src/devicetree/edtlib.py
> Line:2271
> Column:16
>
> Complete results in compliance.xml

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
  • Loading branch information
rettichschnidi authored and nashif committed Sep 17, 2024
1 parent cc61e96 commit 371a48a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/dts/python-devicetree/src/devicetree/edtlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2267,7 +2267,6 @@ def _init_compat2binding(self) -> None:
_err(
f"'{binding_path}' appears in binding directories "
f"but isn't valid YAML: {e}")
continue

# Convert the raw data to a Binding object, erroring out
# if necessary.
Expand Down

0 comments on commit 371a48a

Please sign in to comment.