From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752213AbdIVLpZ (ORCPT ); Fri, 22 Sep 2017 07:45:25 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:21562 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751966AbdIVLpY (ORCPT ); Fri, 22 Sep 2017 07:45:24 -0400 Date: Fri, 22 Sep 2017 14:44:32 +0300 From: Dan Carpenter To: SF Markus Elfring Cc: linux-media@vger.kernel.org, Davidlohr Bueso , Hans Verkuil , Mauro Carvalho Chehab , Sakari Ailus , LKML , kernel-janitors@vger.kernel.org Subject: Re: [PATCH 2/4] [media] usbvision-core: Use common error handling code in usbvision_set_compress_params() Message-ID: <20170922114432.x4e2ao22spbyek7n@mwanda> References: <52c09836-83d7-c509-6e85-c7af16160302@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52c09836-83d7-c509-6e85-c7af16160302@users.sourceforge.net> User-Agent: NeoMutt/20170113 (1.7.2) X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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