[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170922114432.x4e2ao22spbyek7n@mwanda>
Date: Fri, 22 Sep 2017 14:44:32 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: SF Markus Elfring <elfring@...rs.sourceforge.net>
Cc: linux-media@...r.kernel.org, Davidlohr Bueso <dave@...olabs.net>,
Hans Verkuil <hverkuil@...all.nl>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Sakari Ailus <sakari.ailus@...ux.intel.com>,
LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH 2/4] [media] usbvision-core: Use common error handling
code in usbvision_set_compress_params()
On Thu, Sep 21, 2017 at 05:07:06PM +0200, SF Markus Elfring wrote:
> @@ -1913,11 +1908,12 @@ static int usbvision_set_compress_params(struct usb_usbvision *usbvision)
> USB_DIR_OUT | USB_TYPE_VENDOR |
> USB_RECIP_ENDPOINT, 0,
> (__u16) USBVISION_PCM_THR1, value, 6, HZ);
> + if (rc < 0)
> +report_failure:
> + dev_err(&usbvision->dev->dev,
> + "%s: ERROR=%d. USBVISION stopped - reconnect or reload driver.\n",
> + __func__, rc);
You've been asked several times not to write code like this. You do
it later in the patch series as well.
regards,
dan carpenter
Powered by blists - more mailing lists