Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp242303ybi; Fri, 7 Jun 2019 07:21:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4IxMcpA3IxUCR17Yrv44FeX5Y4+IkJOaFa/240gdzpc+e9q4XA0OgjPya+16/YC8WG/1N X-Received: by 2002:a17:90a:1b48:: with SMTP id q66mr5397176pjq.83.1559917294975; Fri, 07 Jun 2019 07:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559917294; cv=none; d=google.com; s=arc-20160816; b=Co8hsvGhAImxEvFMe/vP08s+7kvow8G+UOQLwSDXOW/on6J4Nhlrt4JEdJv0wEKANk 126651ELa+KSEMUFbgJlb9Dmu/3GH5OcevLQfpaM7VLXSGYHSf1qD8ol7GyTFTSap9fv MW3/TCoIAd33m/w5wQIaW/Ol7t78zMw93p4l0zLsAISlwwYOXcfMJn2Yon0l3Gld8+uV zkoBqMbTmkf147dMa3+XCAeSpqGgOacjduv7yvZ7x4HqCDSzNEVXDZq/SxWUHbpjPTzw rMo0nVwJQ7iSKF30tTvc4pQtY/zdwH9I24uDdiHoQ0ap6S10bKFN608NbfdyV+7dWXRM 1suw== 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=fAnhQLoQ1de79AGPdIHISYKoMOoXNvOdtrq91rhemx4=; b=IYp6evwnJwk3ljzjDMjNwoiKqcriw+EPjIqxGTgs4L2ie2Gm5RlIF1JAJuO+ynrEtC pxxINtVF8IoXIv2gJ6sRLFXzr3BVhVyWc+olV8UGcSM9bxAEJeOA+rEOr3TZ23ZS/9v8 B0bBBn0Cu/xRysIacGw0MpDKLFWUjkmG1/TXMUCuxuw8vJRFpr4s0sT7I1IfleELARm2 0yBnxLcyAACW0zUaw2KBikzT/A8/wwRVO1TVHGu+W7kSNInLyNtY9ZMDF/RS5YTwd6R8 PPuxIGKhgjnIbHVJe2kAhPlX3SdrEtUAdInM1sOO2BQQXxSwm9R5MA3vrBaxbE/SkVcb FRBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=5nzzAE25; 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 o3si1868629pld.102.2019.06.07.07.21.18; Fri, 07 Jun 2019 07:21:34 -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=5nzzAE25; 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 S1729629AbfFGOTT (ORCPT + 99 others); Fri, 7 Jun 2019 10:19:19 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:33674 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728851AbfFGOTS (ORCPT ); Fri, 7 Jun 2019 10:19:18 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x57E9ZJ7002817; Fri, 7 Jun 2019 14:19:08 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=fAnhQLoQ1de79AGPdIHISYKoMOoXNvOdtrq91rhemx4=; b=5nzzAE25TXPIKKDm9sI8c/7FCG7SMnEKczYNNEelROsZ9IekWDlbqePm+aK9pfPVyRpE RUAnrbhTHv9021DbZqzZoUEzL56UxZQYVy6RXjdNqT+CHjICcvgcfBNo3aK86mOrD6cN vMsyo1YOMfMVWGl7gJ7djVGiqFWl66VeihV6+H3gUyFf5Oe3eMvb+UksUT/4mPIFJj3I lDbDd8mxL5iU3+oZ9PxJ0WfbnmkM0HVQKpUHjpkFoNR5mpM33j5LmQD6MVOP+i+nn4V0 3+TIyRRXyDUh/ClyLg+kF2zxzR8cZ1WzKAerPvusK2dm+jf/UMc5BuF2YnAZlmNkgaH3 3Q== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 2sugstxhva-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 07 Jun 2019 14:19:08 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x57EIoxM150349; Fri, 7 Jun 2019 14:19:07 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 2swnhd9kmc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 07 Jun 2019 14:19:07 +0000 Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x57EJ7EZ030067; Fri, 7 Jun 2019 14:19:07 GMT Received: from kadam (/41.57.98.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 07 Jun 2019 07:19:06 -0700 Date: Fri, 7 Jun 2019 17:18:55 +0300 From: Dan Carpenter To: Nishka Dasgupta Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, straube.linux@gmail.com, larry.finger@lwfinger.net, florian.c.schilhabel@googlemail.com, colin.king@canonical.com, valdis.kletnieks@vt.edu, tiny.windzz@gmail.com Subject: Re: [PATCH 2/2] staging: rtl8712: r8712_createbss_cmd(): Change Message-ID: <20190607141855.GQ31203@kadam> References: <20190607140658.11932-1-nishkadg.linux@gmail.com> <20190607140658.11932-2-nishkadg.linux@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190607140658.11932-2-nishkadg.linux@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9280 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=636 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906070101 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9280 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=686 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906070100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the subject. On Fri, Jun 07, 2019 at 07:36:58PM +0530, Nishka Dasgupta wrote: > Change return values of r8712_createbss_cmd from _SUCCESS and _FAIL to 0 > and -ENOMEM respectively. > Change return type of the function from unsigned to int to reflect this. > Change call site to check for 0 instead of _SUCCESS. > (Instead of !=0, simply passing the function output to the conditional ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > will do.) ^^^^^^^^^ Remove this line. Otherwise it looks ok. Please resend. regards, dan carpenter