Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933035AbbBBJIO (ORCPT ); Mon, 2 Feb 2015 04:08:14 -0500 Received: from hofr.at ([212.69.189.236]:60481 "EHLO mail.hofr.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752333AbbBBJIL (ORCPT ); Mon, 2 Feb 2015 04:08:11 -0500 Date: Mon, 2 Feb 2015 10:08:09 +0100 From: Nicholas Mc Guire To: Laxman Dewangan Cc: Nicholas Mc Guire , Mark Brown , Stephen Warren , Thierry Reding , Alexandre Courbot , linux-spi@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] spi: tegra20-sflash: cleanup wait_for_completion return handling Message-ID: <20150202090809.GB19706@opentech.at> References: <1422795604-29004-1-git-send-email-hofrat@osadl.org> <54CF3CC5.6030204@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54CF3CC5.6030204@nvidia.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1056 Lines: 33 On Mon, 02 Feb 2015, Laxman Dewangan wrote: > On Sunday 01 February 2015 06:30 PM, Nicholas Mc Guire wrote: >> return type of wait_for_completion_timeout is unsigned long not int, this >> patch adds an appropriate variable and fixes up the assignment. >> As the string in dev_err already states "timeout" there >> is little point in printing the 0 here. >> >> Signed-off-by: Nicholas Mc Guire > > Looks good to me. Thanks for fixing this. > I think it is good if we fix the typo here also. > > Acked-by: Laxman Dewangan > >> >> + if (WARN_ON(dma_timeout == 0)) { >> dev_err(tsd->dev, >> - "spi trasfer timeout, err %d\n", ret); >> + "spi trasfer timeout\n"); > > trasfer -> transfer. > > overlooked that - sorry - will fix it up and resubmit. thx! hofrat -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/