| .. | .. |
|---|
| 574 | 574 | ssize_t mtk_pctrl_show_one_pin(struct mtk_pinctrl *hw, |
|---|
| 575 | 575 | unsigned int gpio, char *buf, unsigned int bufLen) |
|---|
| 576 | 576 | { |
|---|
| 577 | | - int pinmux, pullup, pullen, len = 0, r1 = -1, r0 = -1; |
|---|
| 577 | + int pinmux, pullup = 0, pullen = 0, len = 0, r1 = -1, r0 = -1; |
|---|
| 578 | 578 | const struct mtk_pin_desc *desc; |
|---|
| 579 | 579 | |
|---|
| 580 | 580 | if (gpio >= hw->soc->npins) |
|---|
| .. | .. |
|---|
| 637 | 637 | unsigned int gpio) |
|---|
| 638 | 638 | { |
|---|
| 639 | 639 | struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); |
|---|
| 640 | | - char buf[PIN_DBG_BUF_SZ]; |
|---|
| 640 | + char buf[PIN_DBG_BUF_SZ] = { 0 }; |
|---|
| 641 | 641 | |
|---|
| 642 | 642 | (void)mtk_pctrl_show_one_pin(hw, gpio, buf, PIN_DBG_BUF_SZ); |
|---|
| 643 | 643 | |
|---|