Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3561691yba; Sat, 11 May 2019 13:49:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIo6Zaf4QAmhIHMDM0igfwzCPd6BkRscyL0Fk6RmOf8TOuIPojO6cWKz4e2drEHLubE+bw X-Received: by 2002:a63:cf01:: with SMTP id j1mr21401909pgg.97.1557607760411; Sat, 11 May 2019 13:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557607760; cv=none; d=google.com; s=arc-20160816; b=zzPZE6FeKUhoJnEVNlOTUXRciAkbbIk/KE6nigw7EzbHB9jKP77l7n5Vh8fcdEPxEf wFCMM+W+yTIQ2DUe+u+7BJSbAWgMIbelRlI/VkGgJ+VnZxb6rfVbre3v5KdQyPVLkVa1 4HmQFJV76EncEI1/6pDRYSsS40rY5NHaYDSOtqevE86e60kOG8454Lf9SbLTwsdBPz8F PlrtiQyjdJov0d/PhvsaJDP3ciUxnrs+F9fHG0AeRiIxhY/ariRqQLYVI738EJ6z2j0K 5qJvRmiaHmIwEvmJhEXh8pfYvYjjrowhJQbnpWjHV255kAUMkutZNUiHtfRxOUX7rCGU PspA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TATKjhwZHN/z6muIX01mJSP7pI5rbeNwwgu/ed7JqrA=; b=q/KmLN7SILpoXejjOxDjMBFe7+ZN64pRMYkWk3zskCE5gbBLgcCF3dkfwHDt7EHcuS mPvfUdwuKwS2Ur/ir/34fmAjbJcCmb5XgBF3p+FsELO3pzOH9Nu1AwAMws6Hoxuez/Sx ArmGsSUXwRErhfxHU4vWs9dTbrwxCqm43WqBb0BzdvnCyeIxxvu78WhPknjbfzkoNMsa oHPK5fXGyyNp+TXDiy5OReLs5BCWqqoxIeNhRVmHWa1DveZ/RDwbX2Wv94D8QDylS70W tbbfb3ROtChqB6/K8ABf8Yj7HBX2mzyYDw5GaGIRRuV+B2pd1iNsiocbVqEWqx3eICUy qyuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="NJ3xB0/i"; 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 d31si12001859pla.89.2019.05.11.13.48.52; Sat, 11 May 2019 13:49:20 -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="NJ3xB0/i"; 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 S1726294AbfEKUra (ORCPT + 99 others); Sat, 11 May 2019 16:47:30 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:47704 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726043AbfEKUra (ORCPT ); Sat, 11 May 2019 16:47:30 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x4BKcxfq138977; Sat, 11 May 2019 20:47:22 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 : in-reply-to; s=corp-2018-07-02; bh=TATKjhwZHN/z6muIX01mJSP7pI5rbeNwwgu/ed7JqrA=; b=NJ3xB0/iG5+EBwd2G0oY6BBq5zwHsuqUssQca7AJiS6/HaxfY6stMCwTlt4sk3vNYUj7 NmTAIj5qypg7jo4eQ35JD0nb95I4ggm5T/qvVWqB1kism4CSnMO8EsH5r2KiSLTX34/d Qf0aIJvoUPyKCpwjIWPvViiduPZmlQn1SBCd42Vmg56dAZ85tfjJEhlZn5AXWuthQEzs 8FWgeQZsdSUiJm6AgZKdcdNHgWgoZ2Kab3w/f997zzWweOoRiE+CzVoBUS0XG8hiXkBX pbpLMxMUbrp1HZz9pSZZs+OBN+LfPSNnu7xvQJJxYgmw77lhWj+8Yw2wM37jyAj2oND+ VQ== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2130.oracle.com with ESMTP id 2sdkwd9s2f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 11 May 2019 20:47:22 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x4BKk4AO155526; Sat, 11 May 2019 20:47:21 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 2sdy5u26pt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 11 May 2019 20:47:21 +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 x4BKlJPU021793; Sat, 11 May 2019 20:47:19 GMT Received: from kadam (/41.57.98.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 11 May 2019 13:47:18 -0700 Date: Sat, 11 May 2019 23:47:12 +0300 From: Dan Carpenter To: Hariprasad Kelam Cc: Greg Kroah-Hartman , Tim Collier , Chris Opperman , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [Patch v2] drivers: staging : wlan-ng : collect return status without variable Message-ID: <20190511204711.GG18105@kadam> References: <20190511094859.GA21232@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190511094859.GA21232@hari-Inspiron-1545> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9254 signatures=668686 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-1905110152 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9254 signatures=668686 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-1905110152 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 11, 2019 at 03:18:59PM +0530, Hariprasad Kelam wrote: > As caller rdev_set_default_key not particular about -EFAULT. > We can preserve the return value of prism2_domibset_uint32. > > Signed-off-by: Hariprasad Kelam > ----- > Changes in v2: > - remove masking of original return value with EFAULT > --- > drivers/staging/wlan-ng/cfg80211.c | 9 +++------ > 1 file changed, 3 insertions(+), 6 deletions(-) > > diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c > index 5dad5ac..4018fc5 100644 > --- a/drivers/staging/wlan-ng/cfg80211.c > +++ b/drivers/staging/wlan-ng/cfg80211.c > @@ -231,12 +231,9 @@ static int prism2_set_default_key(struct wiphy *wiphy, struct net_device *dev, > { > struct wlandevice *wlandev = dev->ml_priv; > > - if (prism2_domibset_uint32(wlandev, > - DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID, > - key_index)) > - return -EFAULT; > - else > - return 0; > + return prism2_domibset_uint32(wlandev, > + DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID, > + key_index); > } > I'm sorry, this patch can only be applied on top of v1, but we need a patch which can be applied on top of linux-next without applying v1 first. (Merge/fold the two patches together and resend). regards, dan carpenter