Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1738244
| From | SF Markus Elfring <elfring@users.sourceforge.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 4/4] [media] omap3isp: Delete an unnecessary variable initialisation in isp_video_open() |
| Date | 2017-09-24 20:10 +0200 |
| Message-ID | <utjvQ-3xk-11@gated-at.bofh.it> (permalink) |
| References | <utjvQ-3xk-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Markus Elfring <elfring@users.sourceforge.net> Date: Sun, 24 Sep 2017 19:43:06 +0200 The variable "ret" will eventually be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> --- drivers/media/platform/omap3isp/ispvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/omap3isp/ispvideo.c b/drivers/media/platform/omap3isp/ispvideo.c index d4118466fc8a..a9c0b2d3624d 100644 --- a/drivers/media/platform/omap3isp/ispvideo.c +++ b/drivers/media/platform/omap3isp/ispvideo.c @@ -1303,7 +1303,7 @@ static int isp_video_open(struct file *file) struct isp_video *video = video_drvdata(file); struct isp_video_fh *handle; struct vb2_queue *queue; - int ret = 0; + int ret; handle = kzalloc(sizeof(*handle), GFP_KERNEL); if (!handle) -- 2.14.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/4] [media] OMAP3 ISP: Adjustments for some function implementations SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-24 20:10 +0200 [PATCH 3/4] [media] omap3isp: Use common error handling code in isp_video_open() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-24 20:10 +0200 [PATCH 4/4] [media] omap3isp: Delete an unnecessary variable initialisation in isp_video_open() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-24 20:10 +0200 [PATCH 2/4] [media] omap3isp: Adjust 53 checks for null pointers SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-24 20:10 +0200 [PATCH 1/4] [media] omap3isp: Delete an error message for a failed memory allocation in three functions SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-24 20:10 +0200
csiph-web