diff options
author | Andrew Goodbody <andrew.goodbody@linaro.org> | 2025-07-29 12:50:47 +0100 |
---|---|---|
committer | Tien Fong Chee <tien.fong.chee@intel.com> | 2025-07-30 17:45:30 +0800 |
commit | 6e1cc5d861d388f5699859bac481822029881738 (patch) | |
tree | 6ca20820f3d2c58f9ec01978b7ed59643be387c8 /tools/u_boot_pylib/gitutil.py | |
parent | 344d785aba6da57883a33ad4f98a344dbef603bb (diff) |
socfpga_dtreg: Ensure reg is initialised before use
In socfpga_dtreg_probe it is possible that if mask is 0 then reg will
not be assigned to before first use. Refactor the code slightly to
ensure that reg is always assigned to and remove a piece of duplicated
code.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Diffstat (limited to 'tools/u_boot_pylib/gitutil.py')
0 files changed, 0 insertions, 0 deletions