From patchwork Tue Aug 13 13:38:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11092293 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0D81A14D5 for ; Tue, 13 Aug 2019 13:40:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF92927F60 for ; Tue, 13 Aug 2019 13:40:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E396D2845E; Tue, 13 Aug 2019 13:40:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9301627F81 for ; Tue, 13 Aug 2019 13:40:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727311AbfHMNkD (ORCPT ); Tue, 13 Aug 2019 09:40:03 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4681 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728267AbfHMNkC (ORCPT ); Tue, 13 Aug 2019 09:40:02 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 48912E0C0EC2552A0403; Tue, 13 Aug 2019 21:39:38 +0800 (CST) Received: from lhrphicprd00229.huawei.com (10.123.41.22) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Tue, 13 Aug 2019 21:39:29 +0800 From: Jonathan Cameron To: , , CC: Martyn Welch , Jonathan Cameron Subject: [PATCH] iio:light:noa1305: Fix missing break statement. Date: Tue, 13 Aug 2019 21:38:51 +0800 Message-ID: <20190813133851.14345-1-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Originating-IP: [10.123.41.22] X-CFilter-Loop: Reflected Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This got caught by the implicit fall through detection but is a bug rather than missing marking. Reported-by: 0-DAY kernel test infrastructure Signed-off-by: Jonathan Cameron Fixes: 741172d18e8a ("iio: light: noa1305: Add support for NOA1305") --- drivers/iio/light/noa1305.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/light/noa1305.c b/drivers/iio/light/noa1305.c index 7b859ae1044d..5ebfbc52f541 100644 --- a/drivers/iio/light/noa1305.c +++ b/drivers/iio/light/noa1305.c @@ -85,6 +85,7 @@ static int noa1305_scale(struct noa1305_priv *priv, int *val, int *val2) case NOA1305_INTEGR_TIME_400MS: *val = 100; *val2 = 77 * 4; + break; case NOA1305_INTEGR_TIME_200MS: *val = 100; *val2 = 77 * 2;