Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3695229yba; Mon, 29 Apr 2019 07:04:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVoTJJPFm7OwLItg/oPjY8h1PiebTrUREQvXzIes5kfMh5o77XjMA4FWu7sk5EZNqipvr/ X-Received: by 2002:a65:6545:: with SMTP id a5mr60606190pgw.264.1556546690452; Mon, 29 Apr 2019 07:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556546690; cv=none; d=google.com; s=arc-20160816; b=UcfKOvBCRI9/Z44GoNnFkUuCB7b18cdMsV/33TypMsWyHoW8SC/P6kaC+qBHp34vIt jitc0rBsv1TlHwqltl/ic3BQOFh/5XB4Gm1Hvuy6YcY7vSGCcLkfjqsobMF03K7Qgiqa 6JHTSH5PO80NIu72OPb463u/rqyLDdmb39DNtpc5rMyqptUd2znBxCtgMThEO42CBIWJ VGgSiXqGWoHW+tSPx87FGhhPo8xrAFMMQsPRHjgJU49/N4o8RVswO2BL7bJVxU0frXng 10sR6RZrqrjTSroxKJEgt1WoLLZdx2iQslby7EU3FMdg3BmD16eDNgT0VW8hLHw1CGc4 NRmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=zg2VAolSWzBmZVcirDH3khecUOsjD3mkWFIZwaOymBE=; b=aDUXcFQ5t5NWeM4zMy7YLR8bX4BMfen3PeC4pL43SWftg+n6JCI3USb6EV28rnFJ9t edu6V0gTxbWMU271xRlkRenYeMw76MlnlPg6S/vznkHS/VyjkBK5Rc7Xg2xL7l3oWYDg bv4/TNXXG/v2hAL/4oZVDoKAIJw5AK5kijDHo2xkaXFM1oZ21XswGRio2yaeEmVlD8GN q4jS38mriKaLyvYRXDcDD6PTZ1nMh9K/zlT3bYZoMcLRfAcxlx1mOA91i2q2f7V6Aydl f9J3xn9gWnxgJDAfT45CevMUKs6pt/HYux046j+bFfy3CYSgvd9hLuNnQuSebtXrnGkr NrbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VCqhTFYV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k33si34042051pld.27.2019.04.29.07.04.34; Mon, 29 Apr 2019 07:04:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VCqhTFYV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728265AbfD2OBu (ORCPT + 99 others); Mon, 29 Apr 2019 10:01:50 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:33817 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725838AbfD2OBt (ORCPT ); Mon, 29 Apr 2019 10:01:49 -0400 Received: by mail-oi1-f195.google.com with SMTP id v10so8380246oib.1 for ; Mon, 29 Apr 2019 07:01:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zg2VAolSWzBmZVcirDH3khecUOsjD3mkWFIZwaOymBE=; b=VCqhTFYVsxxfua3Q01y1hYgUTno3LKljw5SVUdYSQzm64SsxKFEf2VXgAMkp9PWzvP JH7mhmYd8fwzrPFyaha/aWCVr2nO12a29yq6zchS7QqcAAwKN9SFPRSlD0HhwuGVrxBZ c4+B+S04RuWdwYPP1qAUmq/bfZvk3oyoydWU9jr9CsQ4ij3oNUqTLJ11MshTQ7QhvrUD 0+Y504OZgIxDafwfDgfGM8UhyyOnllsrYpZP5oN3wxi6vQBKNJ7D83xoXhJ4fD3/Nf3t doEiU3TJevoMdMHC+0hmAjktiSjR+s7QUATbdVkjfebXZs1SghX7sIT9ZFbQu4bgq+RT 9Uqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zg2VAolSWzBmZVcirDH3khecUOsjD3mkWFIZwaOymBE=; b=TYJpUsa5I4xOX0WG2s1JC+v/va6a86u0k1UzCQz7XW81SeKP7LS/JayXbNcZ5o6fRx HywctXiKhn9T+G3StTUENt/sG1j32gkVVosaRpGcFHzOLUyIVPcVdhhqA6MeZSHgExNk ZRYL3zlqYRtPb28VfCplFx0BayxfEhy5OJn+naqm50w3/HB2JHDbBPX+fNERC4vRsvaP sLY7rRpSRWFnCsCPPfXK3/UaJVPYuiWmJ7PNVrV5MLDKay4ZT0rM8irNobbegpR+Vhm3 sn7oJBlxj0ct6ALykgOj+KJnxQgT8rzDliXd8Ms/ulgWp9jCfcHEdy9fZxaNA/tutfT+ eqag== X-Gm-Message-State: APjAAAUyn6RCDCVBzJvVCsoTNoHZT9qEtdfitMSHW/ZFR3M7odmvFv5b 4CemT01eaZvsS+9KlSF5ksABpt/hBKdZExt3io4= X-Received: by 2002:aca:4202:: with SMTP id p2mr14825606oia.169.1556546508930; Mon, 29 Apr 2019 07:01:48 -0700 (PDT) MIME-Version: 1.0 References: <1556517940-13725-1-git-send-email-hofrat@osadl.org> <1556517940-13725-2-git-send-email-hofrat@osadl.org> In-Reply-To: <1556517940-13725-2-git-send-email-hofrat@osadl.org> From: Sven Van Asbroeck Date: Mon, 29 Apr 2019 10:01:37 -0400 Message-ID: Subject: Re: [PATCH V3] staging: fieldbus: anybus-s: consolidate wait_for_completion_timeout return handling To: Nicholas Mc Guire Cc: Greg Kroah-Hartman , devel@driverdev.osuosl.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 29, 2019 at 2:11 AM Nicholas Mc Guire wrote: > > wait_for_completion_timeout() returns unsigned long (0 on timeout or > remaining jiffies) not int - so this type error allows for a > theoretically int overflow - though not in this case where TIMEOUT is > only HZ*2). To fix this type inconsistency the completion is wrapped > into the if() rather than introducing an additional unsigned long > variable. > > Along with fixing this type inconsistency the fall-through if is > consolidated to a single if-block. > > Signed-off-by: Nicholas Mc Guire > --- Queued to https://gitlab.com/TheSven73/linux branch: fieldbus-dev-testing, with my Reviewed-by tag, and the following fix-ups applied: - tweaked commit subject and message slightly (less is more) - removed spurious newline Thank you Nicholas, I really appreciate it ! Sven