Skip to content

Commit

Permalink
[media] omap3isp: remove unused var
Browse files Browse the repository at this point in the history
drivers/media/platform/omap3isp/isppreview.c:932:6: warning: variable ‘features’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
  • Loading branch information
Mauro Carvalho Chehab committed Jun 24, 2015
1 parent 816de50 commit 7fd6bd9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/media/platform/omap3isp/isppreview.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,14 +929,10 @@ static void preview_setup_hw(struct isp_prev_device *prev, u32 update,
u32 active)
{
unsigned int i;
u32 features;

if (update == 0)
return;

features = (prev->params.params[0].features & active)
| (prev->params.params[1].features & ~active);

for (i = 0; i < ARRAY_SIZE(update_attrs); i++) {
const struct preview_update *attr = &update_attrs[i];
struct prev_params *params;
Expand Down

0 comments on commit 7fd6bd9

Please sign in to comment.