diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2015-10-21 18:50:41 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-25 05:08:16 +0300 |
commit | a64557bae30d5d9f8c3e32e22c5e4cbfdf1ca083 (patch) | |
tree | 9ef7f04b0e881faf735250cfe222b6ec12753a7d /drivers/staging/most/aim-v4l2 | |
parent | 16dc374338b0124c937c0dda4588b06a4c9bd708 (diff) | |
download | linux-a64557bae30d5d9f8c3e32e22c5e4cbfdf1ca083.tar.xz |
staging: most: removed redundant code
This patch removes redundant code.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most/aim-v4l2')
-rw-r--r-- | drivers/staging/most/aim-v4l2/video.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/staging/most/aim-v4l2/video.c b/drivers/staging/most/aim-v4l2/video.c index 0d752580d809..228971abf310 100644 --- a/drivers/staging/most/aim-v4l2/video.c +++ b/drivers/staging/most/aim-v4l2/video.c @@ -239,28 +239,6 @@ static void aim_set_format_struct(struct v4l2_format *f) static int aim_set_format(struct most_video_dev *mdev, unsigned int cmd, struct v4l2_format *format) { -#if 0 - u32 const pixfmt = format->fmt.pix.pixelformat; - const char *fmt; - - if (pixfmt != V4L2_PIX_FMT_MPEG) { - if (cmd == VIDIOC_TRY_FMT) - fmt = KERN_ERR "try %c%c%c%c failed\n"; - else - fmt = KERN_ERR "set %c%c%c%c failed\n"; - } else { - if (cmd == VIDIOC_TRY_FMT) - fmt = KERN_ERR "try %c%c%c%c\n"; - else - fmt = KERN_ERR "set %c%c%c%c\n"; - } - printk(fmt, - (pixfmt) & 255, - (pixfmt >> 8) & 255, - (pixfmt >> 16) & 255, - (pixfmt >> 24) & 255); -#endif - if (format->fmt.pix.pixelformat != V4L2_PIX_FMT_MPEG) return -EINVAL; |