summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorEugeniu Rosca <erosca@de.adit-jv.com>2017-08-15 22:36:23 +0200
committerWolfram Sang <wsa@the-dreams.de>2017-08-17 21:52:36 +0200
commit8ae034c2cac93813de1fa10d7167112f71335ccd (patch)
treeafa688193893aaafcbea39d8aaf685d129774182 /drivers/i2c
parentc6a6bdbdc6cc07257889849d9ddf7256cbf3acbc (diff)
downloadblackbird-obmc-linux-8ae034c2cac93813de1fa10d7167112f71335ccd.tar.gz
blackbird-obmc-linux-8ae034c2cac93813de1fa10d7167112f71335ccd.zip
i2c: rcar: avoid unused ret variable
Fix smatch warning: drivers/i2c/busses/i2c-rcar.c:628 \ rcar_i2c_request_dma_chan() warn: unused return: ret = PTR_ERR() Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-rcar.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c
index 93c1a54981df..15d764afec3b 100644
--- a/drivers/i2c/busses/i2c-rcar.c
+++ b/drivers/i2c/busses/i2c-rcar.c
@@ -625,9 +625,8 @@ static struct dma_chan *rcar_i2c_request_dma_chan(struct device *dev,
chan = dma_request_chan(dev, chan_name);
if (IS_ERR(chan)) {
- ret = PTR_ERR(chan);
- dev_dbg(dev, "request_channel failed for %s (%d)\n",
- chan_name, ret);
+ dev_dbg(dev, "request_channel failed for %s (%ld)\n",
+ chan_name, PTR_ERR(chan));
return chan;
}
OpenPOWER on IntegriCloud