From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Valo Subject: Re: [PATCH v3] ath10k: fixup wait_for_completion_timeout return handling Date: Mon, 12 Jan 2015 14:39:22 +0200 Message-ID: <878uh8dvgl.fsf@kamboji.qca.qualcomm.com> References: <1420720054-27870-1-git-send-email-der.herr@hofr.at> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Chun-Yeow Yeoh , Sergei Shtylyov , , , , , Michal Kazior , Yanbo Li , Ben Greear To: Nicholas Mc Guire Return-path: In-Reply-To: <1420720054-27870-1-git-send-email-der.herr@hofr.at> (Nicholas Mc Guire's message of "Thu, 8 Jan 2015 13:27:34 +0100") Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Nicholas Mc Guire writes: > wait_for_completion_timeout does not return negative values so the tests > for <= 0 are not needed and the case differentiation in the error handling > path unnecessary. > > v2: all wait_for_completion_timeout changes in a single patch > v3: patch formatting cleanups - no change of actual patch > > Signed-off-by: Nicholas Mc Guire > --- > patch was only compile tested x86_64_defconfig + CONFIG_ATH_CARDS=m > CONFIG_ATH10K=m > > patch is against linux-next 3.19.0-rc1 -next-20141226 > > None of the proposed cleanups are critical. > All changes should only be removing unreachable cases. Sorry, I wasn't clear enough in my last email but everything related to v2, v3 etc should be after "---" line. I fixed this in ath-next-test branch and will apply your patch once kbuild has run it's tests. -- Kalle Valo