Skip to content

Commit

Permalink
V4L/DVB (3385): Return -EINVAL for unknown commands in msp3400 module.
Browse files Browse the repository at this point in the history
- Return -EINVAL for unknown commands.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jan 15, 2006
1 parent 27487d4 commit cb8d1aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/video/msp3400-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1031,8 +1031,8 @@ static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg)
}

default:
/* nothing */
break;
/* unknown */
return -EINVAL;
}
return 0;
}
Expand Down

0 comments on commit cb8d1aa

Please sign in to comment.