diff options
author | Linus Walleij <[email protected]> | 2021-05-28 11:13:11 +0200 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2021-05-28 11:19:10 +0200 |
commit | 696beef77521d3e418a2780859d1522c3c39d9b5 (patch) | |
tree | 0c81a27ef1579ef4754aa8a31aeda6a141c475dc /scripts/gdb/linux/mm.py | |
parent | 07d5136f9bf1fa6abe70a1f88b04c1216fbf87a2 (diff) |
pinctrl: mediatek: move bit assignment
The bit needs offset to be defined which happens some lines
below. Looks like a bug. The kernel test robot complains:
drivers/pinctrl/mediatek/pinctrl-mtk-common.c:137:12:
warning: variable 'offset' is uninitialized when used here [-Wuninitialized]
bit = BIT(offset & pctl->devdata->mode_mask);
^~~~~~
Fix it up by reverting to what was done before.
Cc: Fabien Parent <[email protected]>
Cc: Sean Wang <[email protected]>
Cc: Matthias Brugger <[email protected]>
Cc: Mattijs Korpershoek <[email protected]>
Cc: [email protected]
Fixes: 9f940d8ecf92 ("pinctrl: mediatek: don't hardcode mode encoding in common code")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions