diff options
| author | Peter Senna Tschudin <peter.senna@gmail.com> | 2012-06-14 12:58:12 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-21 16:54:17 -0400 |
| commit | 3e9e0ca227ea905b0d07f777c5316f44638428bf (patch) | |
| tree | bb48aeb30884602b067164edaff47eda12bff1b8 /drivers | |
| parent | 503d19495673583cd5a60cbe1d92317c7b9b7b65 (diff) | |
[media] saa7164: Variable set but not used
In function saa7164_api_i2c_read variable regval was set but not used.
Tested by compilation only.
Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/media/video/saa7164/saa7164-api.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/media/video/saa7164/saa7164-api.c b/drivers/media/video/saa7164/saa7164-api.c index 8a98ab68239e..c8799fdaae67 100644 --- a/drivers/media/video/saa7164/saa7164-api.c +++ b/drivers/media/video/saa7164/saa7164-api.c | |||
| @@ -1367,7 +1367,6 @@ int saa7164_api_i2c_read(struct saa7164_i2c *bus, u8 addr, u32 reglen, u8 *reg, | |||
| 1367 | struct saa7164_dev *dev = bus->dev; | 1367 | struct saa7164_dev *dev = bus->dev; |
| 1368 | u16 len = 0; | 1368 | u16 len = 0; |
| 1369 | int unitid; | 1369 | int unitid; |
| 1370 | u32 regval; | ||
| 1371 | u8 buf[256]; | 1370 | u8 buf[256]; |
| 1372 | int ret; | 1371 | int ret; |
| 1373 | 1372 | ||
| @@ -1376,19 +1375,6 @@ int saa7164_api_i2c_read(struct saa7164_i2c *bus, u8 addr, u32 reglen, u8 *reg, | |||
| 1376 | if (reglen > 4) | 1375 | if (reglen > 4) |
| 1377 | return -EIO; | 1376 | return -EIO; |
| 1378 | 1377 | ||
| 1379 | if (reglen == 1) | ||
| 1380 | regval = *(reg); | ||
| 1381 | else | ||
| 1382 | if (reglen == 2) | ||
| 1383 | regval = ((*(reg) << 8) || *(reg+1)); | ||
| 1384 | else | ||
| 1385 | if (reglen == 3) | ||
| 1386 | regval = ((*(reg) << 16) | (*(reg+1) << 8) | *(reg+2)); | ||
| 1387 | else | ||
| 1388 | if (reglen == 4) | ||
| 1389 | regval = ((*(reg) << 24) | (*(reg+1) << 16) | | ||
| 1390 | (*(reg+2) << 8) | *(reg+3)); | ||
| 1391 | |||
| 1392 | /* Prepare the send buffer */ | 1378 | /* Prepare the send buffer */ |
| 1393 | /* Bytes 00-03 source register length | 1379 | /* Bytes 00-03 source register length |
| 1394 | * 04-07 source bytes to read | 1380 | * 04-07 source bytes to read |
