Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2145054imm; Mon, 16 Jul 2018 03:04:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe5v/NllDmhm6OmqZinhkzRkiCWPri8iCjPFjQnTP+/fQ7Agcvt6k9+N/Euj+ZQ4kGWPL1x X-Received: by 2002:a62:3545:: with SMTP id c66-v6mr17279613pfa.63.1531735477315; Mon, 16 Jul 2018 03:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531735477; cv=none; d=google.com; s=arc-20160816; b=AmbQrfIb0JAwxWgTTWKT1BSJmhA05KM49ixR8FnpZBIVthssqSvm6PHHEnvvFcDTbW UoOXFtyRRNR/etLfcwohPH62Imr5w+krdfDFEG0cmrejtw6gPPWRh0DnVKPUFvEUP7ti bbapJ9jJNCz1t6t2rjdx95Y15t2jVTdXkNrfZTZ7k04TlpDfXs9fvYqbFBaVlTdXsDlB wHzxJTsdzaMKRCj+TxawrW5UQI65gXW8eXyDP0XA61r5Fyy9wFZrWRGFCn5+vXyLexWY WDjYxN7kq63QKxXAvrC+QI6U2UG0z+onS/peFkJth0yItmWs2rZ6UQYaZ2QkMVamBkjS xqLw== 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:arc-authentication-results; bh=e27iTTgAb7nPJOBVYNATttyLh94Fp5dFuJarlCnnirE=; b=WyNXudiMlw4HOTy3hCkQok8cxC3Ltjg8dTTg6+BGqZseB0iWfj1sYIcdmjC0AmurST ibw5hmllrGTRM9LZkJbvjbaDrKQcpYGQrOdSVP8+IEK1MEgoDEpXWWH5lmQ6ynngT4Dj uJNvIjgKbO4ExV8XAPqQmvsoqvhD6RQRHiYy3KTLHHpu+86DaHTJtL7/gFwbAnaoeNcK aW3Wax0ujHLHmgrJfZ9CH3xGCBOYJXzBV8+aE0PXeGXs02PbYxsVB6GjLfSq0mivqpVS iYaQ8m5/9dHyvrmPz0AUZrpHcdCpACU8vMkw0me2M9gWB+xbyVxS5imBQ/ctcNCnWChc InXw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a72-v6si29221565pge.497.2018.07.16.03.04.22; Mon, 16 Jul 2018 03:04:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730828AbeGPK3M (ORCPT + 99 others); Mon, 16 Jul 2018 06:29:12 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57486 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727596AbeGPK3M (ORCPT ); Mon, 16 Jul 2018 06:29:12 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 94240C22; Mon, 16 Jul 2018 10:02:32 +0000 (UTC) Date: Mon, 16 Jul 2018 12:02:30 +0200 From: Greg KH To: RAGHU Halharvi Cc: devel@driverdev.osuosl.org, driverdev-devel@linuxdriverproject.org, linux-kernel@vger.kernel.org, wsa@the-dreams.de Subject: Re: [PATCH] staging: ks7010_sdio:Fix checkpatch out of memory warning Message-ID: <20180716100230.GA30655@kroah.com> References: <20180713160636.8017-1-raghuhack78@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180713160636.8017-1-raghuhack78@gmail.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 13, 2018 at 09:36:36PM +0530, RAGHU Halharvi wrote: > * Patch fixes checkpatch warning "Possible unnecessary 'out of memory' > message" > > Signed-off-by: RAGHU Halharvi > --- > drivers/staging/ks7010/ks7010_sdio.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c > index b8f55a11ee1c..972b01a0257d 100644 > --- a/drivers/staging/ks7010/ks7010_sdio.c > +++ b/drivers/staging/ks7010/ks7010_sdio.c > @@ -957,10 +957,8 @@ static int send_stop_request(struct sdio_func *func) > card = sdio_get_drvdata(func); > > pp = kzalloc(hif_align_size(sizeof(*pp)), GFP_KERNEL); > - if (!pp) { > - netdev_err(card->priv->net_dev, "allocate memory failed..\n"); > + if (!pp) > return -ENOMEM; > - } This change has already been done in my tree, please always work against linux-next at the least, and ideally staging.git, so that you do not duplicate work others have already done. thanks, greg k-h