Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp335023ybi; Tue, 18 Jun 2019 23:54:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFlA1dpSMG2WrV9TAnsmAwMklOv/XMQE5X3KeEgPlpto+FoJeHPC+OKVH+iMdzyg8UQUnZ X-Received: by 2002:a17:902:2006:: with SMTP id n6mr61298396pla.232.1560927299698; Tue, 18 Jun 2019 23:54:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560927299; cv=none; d=google.com; s=arc-20160816; b=NEBkix1DKaUU5PwyV3PB1vKOXVDOqxoJzXRuVFgnzpeqvNfQZaNxt+KCi6F8J9WC16 YB44GpNMnEmSm5n4fmdQsnAEBhBCQv1u8Gx3b2zajjXsuSxSyU6eDFeE2i8EESoIZloR oV8c/L+o1u3/wB1b7PMaKwQ1LC+2PJ3t+q6ZQ4VHVg7pMwYidFc76FduV+HrG+bv3grE CGRwPwo//R7hDazj3CpBKyJeTAevN0Z6dcYYHU4/GXmSVXWJXmuLW3ToXy4JAfu0y/x/ yDgxAyHTUE2O1MooTIA8IoTsAHBWYQh0fx2lIGi+SeF/rr6+qIpnH30XtGL4Fouyp/co UTrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DlKNJuvcASeK8pBRu937XHctNTJ0nqeBGOzXI0KJiZk=; b=KI3KG2qHdFobIoRvzh3hT8Q7VzwYEYqKboUsfQfBrYAxVq6dVyp88aCHbo19rfUqz7 tDgQH5aZvtSvCrfwPVmjMxZzGKvroUPfQlZY6oCBCNTk3bGQ5Z8MZsQWgmDyxPfkX5GK +lkpawO912KJpCKufoL+oGWya1BeZcloo3uPp9bIsOurwcwzDv92l0qVUH9BXL8Mi+jY oO09XltX2pUOu0oDrEw2zBuV6XwF3KRFhajie8+oT0PLkwRSq8vNZJRQNpFq8eWA4Mla 7GBiwGxlYD7Jg9b98pBje4MqXYGQlv4w8b8+nMfaO4sQaEy4iIrKT3eMJIEBLGRFp38r cTxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=Ohai5YMf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h12si599027pjt.4.2019.06.18.23.54.43; Tue, 18 Jun 2019 23:54:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=Ohai5YMf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730826AbfFSGye (ORCPT + 99 others); Wed, 19 Jun 2019 02:54:34 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:59314 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbfFSGye (ORCPT ); Wed, 19 Jun 2019 02:54:34 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5J6s3o1049267; Wed, 19 Jun 2019 06:54:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : content-transfer-encoding : in-reply-to; s=corp-2018-07-02; bh=DlKNJuvcASeK8pBRu937XHctNTJ0nqeBGOzXI0KJiZk=; b=Ohai5YMfgkYyE2gW6+kp0v734uX79EDWBfm+7mUeaNCOClTgeZ2ukG9aq4oELB8q0yMo spxgW5BVidnS0ZPC6wmMMiD1Dtps13S7Fvo2+UHg1vam2zH8M4+ww/UHzuE86B3L4xST u5wy3RpL3WfMBntDZdBJxSt9UEYtb8a5PIeX6W0YqsMsPSdM7F/Drk9BSzr4c857tGHy HGrfpQoSqgqlkaJ+APUPXp2mxXakX1JKcCVGI5u57hJ6gm53pZsLbifhuSZftxUucz0e 1oENivX1K58BRP22PcgIK+Li9ZAKOmuwHu2xsWzut02YyTMXoKSMpkLZNUYwsbk14eZH +w== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2120.oracle.com with ESMTP id 2t78099fe0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Jun 2019 06:54:29 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5J6rAwt042359; Wed, 19 Jun 2019 06:54:29 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 2t77ymwbjk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Jun 2019 06:54:29 +0000 Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x5J6rD9O024098; Wed, 19 Jun 2019 06:53:14 GMT Received: from kadam (/41.57.98.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 18 Jun 2019 23:53:12 -0700 Date: Wed, 19 Jun 2019 09:53:06 +0300 From: Dan Carpenter To: Simon =?iso-8859-1?Q?Sandstr=F6m?= Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: kpc2000: simplify error handling in kp2000_pcie_probe Message-ID: <20190619065306.GN28859@kadam> References: <20190619063607.20722-1-simon@nikanor.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190619063607.20722-1-simon@nikanor.nu> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9292 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906190057 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9292 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906190057 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 19, 2019 at 08:36:07AM +0200, Simon Sandstr?m wrote: > We can get rid of a few iounmaps in the middle of the function by > re-ordering the error handling labels and adding two new labels. > > Signed-off-by: Simon Sandstr?m > --- > > This change has not been tested besides by compiling. It might be good > took take an extra look to make sure that I got everything right. > You have the right instincts that when something looks really complicated that's probably for a reason. That attitude will serve you well in the future! But in this case it's staging code so the original code is just strange. Reviewed-by: Dan Carpenter > Also, this change was proposed by Dan Carpenter. Should I add anything > in the commit message to show this? There is a Suggested-by: tag for this, but don't resend because I don't care and I've already reviewed this version so I don't want to review the patch again. regards, dan carpenter