From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laxman Dewangan Subject: Re: [PATCH 2/2] spi: tegra20-slink: cleanup wait_for_completion return handling Date: Mon, 2 Feb 2015 14:33:05 +0530 Message-ID: <54CF3D49.5010802@nvidia.com> References: <1422795727-29097-1-git-send-email-hofrat@osadl.org> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Cc: Mark Brown , Stephen Warren , Thierry Reding , Alexandre Courbot , , , To: Nicholas Mc Guire Return-path: In-Reply-To: <1422795727-29097-1-git-send-email-hofrat@osadl.org> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-spi.vger.kernel.org On Sunday 01 February 2015 06:32 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 as it just restates "timeout". 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(ret == 0)) { > - dev_err(tspi->dev, > - "spi trasfer timeout, err %d\n", ret); > + if (WARN_ON(dma_timeout == 0)) { > + dev_err(tspi->dev, "spi trasfer timeout\n"); trasfer->transfer