Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp251224pxv; Thu, 8 Jul 2021 20:18:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfwwrUgQ15xxYskUL7uDbcz0I92IFCQYxWQdRkxIenN0DloTGzEevSGK3xM+cCCp7esD61 X-Received: by 2002:a6b:d115:: with SMTP id l21mr27269016iob.130.1625800687098; Thu, 08 Jul 2021 20:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625800687; cv=none; d=google.com; s=arc-20160816; b=vollKMp/K0e6bf+wb98MmUtBxsoVArHkWltOdJRWsrGPBKQ8o7E9kM3oQGEM/xsM2x 6JT0mYRICtus76EohWcPN1asOdgFumNlutVwwzb9bo6DL95bryeUv54ZwXT1/Uehq1uO OguF5Hdj4V0Eu7wDibcGzo8lbhJ+KSJ9EDHmqro9F+lpVEBD+3S2Z+UZvI5ZVdu5ODxA BYQHODN3xLoVtqcFoG/wdFcXexzl7c8Jyx4DRsgzDO/xJ7P4JD7RErEFupX+kn+fWHZO bsLoriRXwO83yXsZknvQvdQ8oh/5vDDnlPasobvp3Ydd5fkaXodsVQ19lGsqmLOQMIRA ZTKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=WgYdiIOxAQ/HCTaPSVzBxyU8mVrwT8Kgg4wCyu3Uux8=; b=fmMwr6pkuSUUGjLMF9uvDyfjaaCanh5sAzea7ZhEhIx9i5wBaomRR9Op8QOyuQk9y9 lHROXS6B/ZsxwV08Z+RSaPmx/+2ABB98AY95F1IhqeND36bSdIisDTAYtq9hjTaCfAqG z18VNxDEEoseUt0h8zuUnf5QMnOYTUU3s9gfvMgshZixqbTVkbXpFeq2y0L3g6L/aNNe 0uzaEdI4k0W/M/gVuWOZ7X6beR0Lfrk7VKJtmCMgxkCN5R34FtBrorYijQUHNdIYiLhh DBmb9ArIuiATVRzBgoQBiqFOGGT1kN60suzkhJWfLTpoDYw4R75TH6wDOdKZ66aLhfFb 8Wzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Zsf7DzVx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id t14si4742964jan.9.2021.07.08.20.17.38; Thu, 08 Jul 2021 20:18:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Zsf7DzVx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230489AbhGIDTD (ORCPT + 99 others); Thu, 8 Jul 2021 23:19:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230453AbhGIDTC (ORCPT ); Thu, 8 Jul 2021 23:19:02 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6559C061574; Thu, 8 Jul 2021 20:16:19 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id y4so7428400pfi.9; Thu, 08 Jul 2021 20:16:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WgYdiIOxAQ/HCTaPSVzBxyU8mVrwT8Kgg4wCyu3Uux8=; b=Zsf7DzVxl643Jsoxh8uBAgqiLpn0boTOhu+AcIjFlI0VrrfdkgPuO+5z70sXrcUOzN 1cY1vYfORPplLXbWtmwpztC+ipFHOmtQ8LfqpKq45jcm+5VnVbd5VkwxGfA1wPrlydOP XNjMZ9ycaM5YtP9ZpjYy1+GyWCWT1xPgilmnGQ6Ctl7A1Su8S5d6hM4tT4eExUjpwvtk 6OA/g6DhX3ENyGZ1AnwpMILH3gHXp7yGsHdSz8cmqYTDAA5tET41kBpXhWeu7z4KQm/o 4w2MS0sh1PZXMdnCSrt8BGEGgC2ffljVP7iJM/s0JvsRCLxF4t2+nnKVNeT7Aa/GL4Mk I+0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WgYdiIOxAQ/HCTaPSVzBxyU8mVrwT8Kgg4wCyu3Uux8=; b=joiZCVK2EV55+fNAdiShx9dJbiUNXoPLJEF0cVG2BFbMnPfCKCHJqWUZ5+h1RZ+6mo mYDn6StTh92CaxHvGDa5kar6ckDjEFncJFT8p2UexW+NkbgA1Lj7R08o8yVqGkvYGk68 owl0ECnXnxytS77Q29lzFMau+KADAFF+akl8cGnH1kj3tr01m0UF7zIpcrv7Vtolk7Ir Sfu8uXfwtgSd2zcyQK8bnvrrPLij/lyJvtuUTPXlIBdSNdO96v+rP6ewq/aX7uHyVd3C XpZphDkirXzqlrAaRQsFvS6IX9DlE1Jh/oYniyyZ6GlQYhHj+9t75pynT8OpOUoAhBxN 2YqA== X-Gm-Message-State: AOAM533nGCXDOPY9AgIKxX+xRlYwLefFo6xA9a1ObL+bCORKP1vhGAyR itkNpR4URpermp/5MpS3dqs= X-Received: by 2002:a63:4650:: with SMTP id v16mr35413408pgk.90.1625800579004; Thu, 08 Jul 2021 20:16:19 -0700 (PDT) Received: from localhost.localdomain ([2405:201:9005:8001:f83b:3fe0:973b:4044]) by smtp.gmail.com with ESMTPSA id p53sm4333209pfw.108.2021.07.08.20.16.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jul 2021 20:16:18 -0700 (PDT) From: Souptick Joarder To: jic23@kernel.org, lars@metafoo.de, sean@geanix.com, andriy.shevchenko@linux.intel.com, linus.walleij@linaro.org Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Souptick Joarder , kernel test robot , Dan Carpenter Subject: [PATCH] iio: accel: fxls8962af: Initialize return value Date: Fri, 9 Jul 2021 08:45:25 +0530 Message-Id: <20210709031526.30746-1-jrdr.linux@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org kernel test robot throws below warning -> smatch warnings: drivers/iio/accel/fxls8962af-core.c:640 fxls8962af_i2c_raw_read_errata3() error: uninitialized symbol 'ret'. Initialize it. Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Souptick Joarder --- drivers/iio/accel/fxls8962af-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/accel/fxls8962af-core.c b/drivers/iio/accel/fxls8962af-core.c index 078d87865fde..8af1c8f58e83 100644 --- a/drivers/iio/accel/fxls8962af-core.c +++ b/drivers/iio/accel/fxls8962af-core.c @@ -628,7 +628,7 @@ static int fxls8962af_i2c_raw_read_errata3(struct fxls8962af_data *data, u16 *buffer, int samples, int sample_length) { - int i, ret; + int i, ret = -EINVAL; for (i = 0; i < samples; i++) { ret = regmap_raw_read(data->regmap, FXLS8962AF_BUF_X_LSB, -- 2.25.1