From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753505AbbJNSNK (ORCPT ); Wed, 14 Oct 2015 14:13:10 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:48404 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752222AbbJNSNI (ORCPT ); Wed, 14 Oct 2015 14:13:08 -0400 Date: Wed, 14 Oct 2015 21:12:36 +0300 From: Dan Carpenter To: Sakshi Bansal Cc: jak@jak-linux.org, marvin24@gmx.de, gregkh@linuxfoundation.org, ac100@lists.launchpad.net, linux-tegra@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: nvec: fixed few coding style warnings Message-ID: <20151014181236.GX7340@mwanda> References: <20151014140822.GA23114@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151014140822.GA23114@localhost.localdomain> User-Agent: Mutt/1.5.21 (2010-09-15) 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 Wed, Oct 14, 2015 at 07:38:22PM +0530, Sakshi Bansal wrote: > Fixed allignmnet issues and block comments usage > Split it apart by type of fix. > @@ -617,7 +618,7 @@ static irqreturn_t nvec_interrupt(int irq, void *dev) > } else { > nvec->rx = nvec_msg_alloc(nvec, NVEC_MSG_RX); > /* Should not happen in a normal world */ > - if (unlikely(nvec->rx == NULL)) { > + if (!unlikely(nvec->rx)) { This isn't right. You intented to say: if (unlikely(!nvec->rx)) { But even better to just remove the unlikely entirely. if (!nvec->rx) { > nvec->state = 0; > break; > } regards, dan carpenter