Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5909171ybp; Tue, 15 Oct 2019 06:54:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHW1k1bJeKa9UbhkCUwxZGvGuIM6za3ziTugb9fWGRtYeLlEBTsEkGPtynk5mwhiM844O1 X-Received: by 2002:a17:906:64e:: with SMTP id t14mr34431689ejb.75.1571147660441; Tue, 15 Oct 2019 06:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571147660; cv=none; d=google.com; s=arc-20160816; b=CNETW+Ed2Yj0L0aExPChIWek0syAdqvBaUYB3zBBq8mJJFoQ4HUbF7M5uzKuzf34KB wzjeFxI3UIab0Bu1dccPidhgYEvI7viFZkR6xLhKhQB7QTWz8FGEI6xgSZNRAA4OKmJi vDlHaPpMyH4BMrf5WzqIxZI6fU5Vl94XhXiourPu4/ZAmhAByz4R2SF6jQK8d+5IyV4s K5mmrLeeMt4dWGYxPuW/1l8u50B5r9a9C8ngu1Z/gUd/SYSo/jOuRSj5sXMroAI1EVvx KQBCpQqYLYM29sZXSEYkO2SAgD91ipuGXNCgOFFpPcXhzw9ybFQuozgB9qGe2La1+UCJ TfbQ== 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=QhHgBu9DtlVuSa/jKN81LxnRQ5IePxEDrqTOOn2qwlc=; b=Vk0E6b8yxpPpZMq1WWLF80uJIUWAQl3FFFg1sUPPjo+gtv+Oxm3LHR5kXO0sXpkwRh 5A0C/sO3HZazgxdDUnxz65QaUJnSS13PZ5CWlS+7jAk0sET2o2hTbfodi+h7wwXXbF60 Y70SttapeNY1aKLliiSIhA09BQUIWjVe62Zu+OvR+9UoYS8/RhzWsHcZ9EOFZHRV48fH ouerKTOwJJzIBUOMw4AdbcPQX+x1rxEOJSk2Iq2Rxnz3hPDCGemUegrCiUyFYST0XVRU QIyu3g5fIqPQxM/P2XUo4f16ThR4D84WSnLRZUL1/E1jAvfw9Y/PikITh547SXGnpdbH 0xsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oKjy0lXq; 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 k15si12380725ejs.401.2019.10.15.06.53.56; Tue, 15 Oct 2019 06:54:20 -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=oKjy0lXq; 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 S1732228AbfJONx2 (ORCPT + 99 others); Tue, 15 Oct 2019 09:53:28 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:38175 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728880AbfJONx1 (ORCPT ); Tue, 15 Oct 2019 09:53:27 -0400 Received: by mail-pg1-f195.google.com with SMTP id w3so5289301pgt.5; Tue, 15 Oct 2019 06:53:27 -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=QhHgBu9DtlVuSa/jKN81LxnRQ5IePxEDrqTOOn2qwlc=; b=oKjy0lXqfaBGQOGxCfyXjK5IpuMO/YOWCF5nkjtbivKJ5HRGK6luMngGsN9xTcQq23 2krqRfsoPw28MJcSKfyxYGQjH2hqwBkP+qygdHQapWzARXN0xn5zyr2s/zOcMIWYajDL 0ufPvELGFhkOlnpI+Ydymyi7FwXQ+9ap+zpW6wY/O0gn1ZNIixNKIRHDF7SmBxLWZu3Z qzIFUJMub6bE+NZgTwew5E31oxZjyzk7CIqg7lqKbSzO/3j1bjzxabtnkg2BMZlMX79C Jv4P/XpW9ksJ8iQu0iMgboaSQr9NzD0MntkcvM0WhdgoGjuFoPzzPbPBwv34r3ZGZoAh FR2g== 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=QhHgBu9DtlVuSa/jKN81LxnRQ5IePxEDrqTOOn2qwlc=; b=Y2ejVFrZ4hz1EBNCTxtFvEyCTAFKxzgpCjLHZ+O3anAFk7rPeJK1kfTiv4TKWUJ/Sg 2lGZ7w8yRQkm39ySTXG3RNWi1FlfvJALeYCyHJvZo81KWwzJuDSdQtI3jCCX4rIAgG15 qnvY+4uTxvpMpndOKy61jgexNQPHCuYtW1MwYgGkjGVAwIyEKjiq4WjhFkpbDPn3PnXo f0eCyHN46QLcw6ZsX8uv1EjlyEGB7unMPbXTP+HZQKKxQuTMkvU9LwAVKY8QBL3XjaN8 vib8glQKDSxTw+hfI2GtbdRzIqcghEX/3zTAcBIkEz0BsJ71VYAmlVKZUFZ2M3Xnoh6O rkxQ== X-Gm-Message-State: APjAAAVX0r5N9BjgU2zjW8ayzFYpBerqVH9HfXXhpw5UL1kWYspQqEl1 l1VY+MpGZjSJoIOjMn/IWTCdnxNB5/dnjvKyqcY= X-Received: by 2002:a62:e206:: with SMTP id a6mr38798141pfi.64.1571147606854; Tue, 15 Oct 2019 06:53:26 -0700 (PDT) MIME-Version: 1.0 References: <20191012035420.13904-3-dan@dlrobertson.com> <201910150017.MkSBCEcB%lkp@intel.com> In-Reply-To: <201910150017.MkSBCEcB%lkp@intel.com> From: Andy Shevchenko Date: Tue, 15 Oct 2019 16:53:16 +0300 Message-ID: Subject: Re: [PATCH v2 2/2] iio: (bma400) add driver for the BMA400 To: kbuild test robot Cc: Dan Robertson , kbuild-all@lists.01.org, Jonathan Cameron , linux-iio , Peter Meerwald-Stadler , devicetree , Hartmut Knaack , Rob Herring , Mark Rutland , 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 Tue, Oct 15, 2019 at 12:25 AM kbuild test robot wrote: > smatch warnings: > drivers/iio/accel/bma400_core.c:422 bma400_set_accel_oversampling_ratio() warn: unsigned 'acc_config' is never less than zero. > 420 ret = regmap_read(data->regmap, BMA400_ACC_CONFIG0_REG, > 421 &acc_config); > > 422 if (acc_config < 0) > 423 return acc_config; Obvious typo, has to be if (ret < 0) > 424 > 425 ret = regmap_write(data->regmap, BMA400_ACC_CONFIG0_REG, > 426 (acc_config & ~BMA400_LP_OSR_MASK) | > 427 (val << BMA400_LP_OSR_SHIFT)); > 428 if (ret < 0) { > 429 dev_err(data->dev, "Failed to write out OSR"); > 430 return ret; > 431 } -- With Best Regards, Andy Shevchenko