Skip to content

Commit fe07ade

Browse files
Wolfram SangWolfram Sang
authored andcommitted
i2c: sh_mobile: fix uninitialized var when debug is enabled
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
1 parent b074cf8 commit fe07ade

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/i2c/busses/i2c-sh_mobile.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ static struct dma_chan *sh_mobile_i2c_request_dma_chan(struct device *dev,
550550

551551
chan = dma_request_slave_channel_reason(dev, chan_name);
552552
if (IS_ERR(chan)) {
553+
ret = PTR_ERR(chan);
553554
dev_dbg(dev, "request_channel failed for %s (%d)\n", chan_name, ret);
554555
return chan;
555556
}

0 commit comments

Comments
 (0)