diff options
author | Guodong Liu <Guodong.Liu@mediatek.com> | 2023-01-18 14:20:35 +0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2023-01-26 14:39:35 +0100 |
commit | a298c70a10c604a6b3df5a0aa56597b705ba0f6b (patch) | |
tree | 328d27ee402400370522958d1b9ce57ee26be3dd /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 9bd73ce087354628983bc4392ba6894d6b6c15a7 (diff) |
pinctrl: mediatek: Initialize variable pullen and pullup to zero
Coverity spotted that pullen and pullup is not initialized to zero in
mtk_pctrl_show_one_pin. The uninitialized variable pullen is used in
assignment statement "rsel = pullen;" in mtk_pctrl_show_one_pin, and
Uninitialized variable pullup is used when calling scnprintf. Fix this
coverity by initializing pullen and pullup as zero.
Fixes: 184d8e13f9b1 ("pinctrl: mediatek: Add support for pin configuration dump via debugfs.")
Signed-off-by: Guodong Liu <Guodong.Liu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230118062036.26258-2-Guodong.Liu@mediatek.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions