From: SF Markus Elfring Date: Fri, 22 Sep 2017 14:50:07 +0000 Subject: Re: [PATCH 2/4] [media] usbvision-core: Use common error handling code in usbvision_set_compress_par Message-Id: List-Id: References: <52c09836-83d7-c509-6e85-c7af16160302@users.sourceforge.net> <20170922114432.x4e2ao22spbyek7n@mwanda> In-Reply-To: <20170922114432.x4e2ao22spbyek7n@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Dan Carpenter , linux-media@vger.kernel.org Cc: Davidlohr Bueso , Hans Verkuil , Mauro Carvalho Chehab , Sakari Ailus , LKML , kernel-janitors@vger.kernel.org >> @@ -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. This suggestion occurred a few times. Do you prefer to move this place to the end together with a duplicated statement “return rc;”? > You do it later in the patch series as well. To which update step do you refer here? Regards, Markus