Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp378652ybl; Wed, 22 Jan 2020 23:54:41 -0800 (PST) X-Google-Smtp-Source: APXvYqzzvO/6NnCO683Yu9ARVDzGyvaBH/4D4csSHsH+e8QZTZmRzAPPSAddOT4KlsZU8X+r1vLj X-Received: by 2002:a9d:6c99:: with SMTP id c25mr10275050otr.178.1579766081559; Wed, 22 Jan 2020 23:54:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579766081; cv=none; d=google.com; s=arc-20160816; b=tAqCEd4A+H9itLDiD8OE0m5ktzjEVjkVhf/r5vX/20vx/lInPl+WDoIV+OzohQ1aMT +5Wvuli49LJEe8uAniK29HiFp3ML08InHQh8s1v0iysFLWP4A3b/85r+BAvjXf8yapL4 WgB3a6Qz+yb04Lz8qRSMYx88N6qzUblkc4GxTpBwopRQLX/PqPTzPR/Ve5OSOeTkMqxN 2oa7Clv/tTtmpFyO9KoGPmLzklIDMVXtcpDUUGMrudETzsLG+/lcdJwNqH41SlcovNcH 0PGY4HvFAfa8D2CGi0rRavt7QBPP1lph1kXtFFWkgMGQP61mmPLKz9vee8Ulv7KdTV/5 vyOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LkS/V988Ti/1GfKcQfeUkMBm9SsC4LVrMiS9Hhq0LuA=; b=1CRp/2soANcOuegx2K8rk2weUif9ekaJdmjONur9iZenWI6bY1pjvnyhPx9YgVJPSc VSG1QiFsOy98+aTx3V9x1xPNRzHk+TX3Iyn+mxxVdh4G6gqIfYpD8LlsZ9VJw+Nag3pD orAL1+rQGmS0BEGEmKg3I3gNHtO8baKpeWAts8CBoHukPjiN03w1AbzMuOzomy+v09nL MeIBGMZegz+p2f98QmZuT8GuYJGpC0w2scikTayDC+90JLkUSwI68sHdiRViLSNZLQAI FUqy/bKqh7sTcYOupO6RUJfaaMkbuBqJQijLS0LnXBKFiaeEeHowdt8zCZbWmP7XGcNa fHeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Jwrbc4bf; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l78si517831oih.182.2020.01.22.23.54.28; Wed, 22 Jan 2020 23:54:41 -0800 (PST) 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=@linaro.org header.s=google header.b=Jwrbc4bf; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726141AbgAWHxf (ORCPT + 99 others); Thu, 23 Jan 2020 02:53:35 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:38841 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726061AbgAWHxe (ORCPT ); Thu, 23 Jan 2020 02:53:34 -0500 Received: by mail-wm1-f66.google.com with SMTP id u2so1438973wmc.3 for ; Wed, 22 Jan 2020 23:53:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=LkS/V988Ti/1GfKcQfeUkMBm9SsC4LVrMiS9Hhq0LuA=; b=Jwrbc4bf/9zfn+7g7L6Mdt6K1JnykaDSeM1CbIruN3JXLZdou2iBHVAZn0K2Rywx3u j2keMcRx9RG6t90wQAYQ7g3NnKMOQS1GZfR5r/CKi9hJyXJONTeAvnmTI2UuS2IEvrms 8p6oUdFLySKJewP3QtHK73gAZo6G83s8DHqx1UtZITLksupSHVgqBBvE+ydGJUtAIkTs VnHbh3HI7mIXTrfeBLCP3FsDadqwpFP1ndooqP0tZyoOReFQTiRhtsNeXsjEe/TpQAuK kRPrsj7rOxZ0t8HxZZaYRVPb7I9V280AEXOARLuvhXUCaOY1IVzf4Aw075bcorF/HbAF Yi4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=LkS/V988Ti/1GfKcQfeUkMBm9SsC4LVrMiS9Hhq0LuA=; b=F35P70IJzGFFwZ/7nzgz/u0b0jxK035TWmqymnr3iREsdvmGYtc7OyEnraUM8ZAdxz N64WgMZh3SM99srXyQoSlFiekUg7EcKxYq2swEV22GeDOegMUGFhlUe6DCGPPKe8IDMS Y1vHulcU85t/fVJbs3h4jW6YiAmI1bPkgXQ6tjHI3aE5qeM+3yGaj5ZR/klkd4pcZD9t s5zLxx7JL3P1Z4eRcyJiTDigvw3eF0zI7V7yXkP0Mk+y5p7BwhJ8/4/ZAtGH6RyXizTQ 0b0t1ETLcW6McjpXWGm+lZFS6qKOuUkpPoLPRJ8FDNeoytE7gB22Oxq46/szkLVK2JBD Wh/g== X-Gm-Message-State: APjAAAW2XxRS/l4E3+3qB2pyUloZr7Cu8UtA9N9RNgVOpuC8o8E6JS4f PkciwtFoMK08Vess43ovdOvH0MISRsE= X-Received: by 2002:a7b:cd1a:: with SMTP id f26mr2619310wmj.164.1579766012421; Wed, 22 Jan 2020 23:53:32 -0800 (PST) Received: from dell ([2.27.35.227]) by smtp.gmail.com with ESMTPSA id z25sm1749383wmf.14.2020.01.22.23.53.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2020 23:53:31 -0800 (PST) Date: Thu, 23 Jan 2020 07:53:45 +0000 From: Lee Jones To: Chen Zhou Cc: agross@kernel.org, bjorn.andersson@linaro.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, b.zolnierkie@samsung.com, kgunda@codeaurora.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next v2] backlight: qcom-wled: fix unsigned comparison to zero Message-ID: <20200123075345.GO15507@dell> References: <20200122013240.132861-1-chenzhou10@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200122013240.132861-1-chenzhou10@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 22 Jan 2020, Chen Zhou wrote: > Fixes coccicheck warning: > ./drivers/video/backlight/qcom-wled.c:1104:5-15: > WARNING: Unsigned expression compared with zero: string_len > 0 > > The unsigned variable string_len is assigned a return value from the call > to of_property_count_elems_of_size(), which may return negative error code. > > Fixes: 775d2ffb4af6 ("backlight: qcom-wled: Restructure the driver for WLED3") > Signed-off-by: Chen Zhou > Reviewed-by: Bjorn Andersson > --- > > changes in v2: > - fix commit message description. > > --- > drivers/video/backlight/qcom-wled.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Applied, thanks. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog