From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Subject: Re: [PATCH] staging: nvec: fixed few coding style warnings Date: Wed, 14 Oct 2015 21:12:36 +0300 Message-ID: <20151014181236.GX7340@mwanda> References: <20151014140822.GA23114@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20151014140822.GA23114@localhost.localdomain> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" To: Sakshi Bansal Cc: devel@driverdev.osuosl.org, jak@jak-linux.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, ac100@lists.launchpad.net List-Id: linux-tegra@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