diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-09-24 07:36:39 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-10-21 08:56:52 -0200 |
commit | 9f93c52783faa24c5c6fca216acf0765ad5d8dd6 (patch) | |
tree | d7b712a08a22e2d5cb42f736e079cf041263414e /drivers/media/usb/hackrf | |
parent | 143800a5778e577ada53441a42ed1437b3b2b11b (diff) | |
download | linux-stable-9f93c52783faa24c5c6fca216acf0765ad5d8dd6.tar.gz linux-stable-9f93c52783faa24c5c6fca216acf0765ad5d8dd6.tar.bz2 linux-stable-9f93c52783faa24c5c6fca216acf0765ad5d8dd6.zip |
[media] hackrf: harmless off by one in debug code
My static checker complains that "i" could be one element beyond the end
of the array.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/hackrf')
-rw-r--r-- | drivers/media/usb/hackrf/hackrf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/hackrf/hackrf.c b/drivers/media/usb/hackrf/hackrf.c index 328b5ba47a0a..fd1fa412e094 100644 --- a/drivers/media/usb/hackrf/hackrf.c +++ b/drivers/media/usb/hackrf/hackrf.c @@ -932,7 +932,7 @@ static int hackrf_set_bandwidth(struct hackrf_dev *dev) dev->bandwidth->val = bandwidth; dev->bandwidth->cur.val = bandwidth; - dev_dbg(dev->dev, "bandwidth selected=%d\n", bandwidth_lut[i].freq); + dev_dbg(dev->dev, "bandwidth selected=%d\n", bandwidth); u16tmp = 0; u16tmp |= ((bandwidth >> 0) & 0xff) << 0; |