Message ID | 1439547438-4512-1-git-send-email-srinivas.kandagatla@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBC27VH7PV4DBBO4AW6XAKGQEZ4RHFWY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 8194522B12 for <linaro@patches.linaro.org>; Fri, 14 Aug 2015 10:17:32 +0000 (UTC) Received: by wicja10 with SMTP id ja10sf4996161wic.2 for <linaro@patches.linaro.org>; Fri, 14 Aug 2015 03:17:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=qfUjM920WBR68X2ybJWY2dGTRMIM40WGRn3s4KPtewk=; b=V3UiZOcmRdgp6frLfKb9rpa9hQHeZJdazOYllnnjCLRgeiNTF9Ifi+T5KMORM0Pk8k 6cwbFT9aCiB433AmV3D+l+a8Z91khEU6tiMu/9yTaR93h/VzlWTsu6XS/PIj+1Saj+af ZCRS4yoG3Q8YnMSKsuvO2u2nnnpp0n48xG8l0luJzW73WvSoYHOCLGe/tjVkjV4UlLbz 482dz7/afFnDI9OQLDQb7fryw5qBklBYa40g/VvhVbu1TF2VOPn7WenugHgqq6XO0nYm qV0tmy4COUjkZuFGg2jPs0TW0/4+cCWRh/F3MmhLhUWeDHA+kIGXb/HwVGInFc/jfFsK SMpg== X-Gm-Message-State: ALoCoQmp9agAjyNAeYFVAFWqofIlbAroDkJUtZH0U/QfV6gIras2b2PwptBnnpZoJzS/jSOWKyus X-Received: by 10.112.138.2 with SMTP id qm2mr12794321lbb.19.1439547451516; Fri, 14 Aug 2015 03:17:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.7 with SMTP id bc7ls349661lab.74.gmail; Fri, 14 Aug 2015 03:17:31 -0700 (PDT) X-Received: by 10.112.158.70 with SMTP id ws6mr43026815lbb.28.1439547451202; Fri, 14 Aug 2015 03:17:31 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id z20si5654065lbg.121.2015.08.14.03.17.30 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Aug 2015 03:17:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbcbn3 with SMTP id bn3so42422224lbc.2 for <patchwork-forward@linaro.org>; Fri, 14 Aug 2015 03:17:30 -0700 (PDT) X-Received: by 10.112.209.106 with SMTP id ml10mr42481809lbc.112.1439547450714; Fri, 14 Aug 2015 03:17:30 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp1504830lba; Fri, 14 Aug 2015 03:17:29 -0700 (PDT) X-Received: by 10.68.254.200 with SMTP id ak8mr46038252pbd.53.1439547448604; Fri, 14 Aug 2015 03:17:28 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id km1si8288727pab.52.2015.08.14.03.17.27; Fri, 14 Aug 2015 03:17:28 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754703AbbHNKR0 (ORCPT <rfc822;matthew.hart@linaro.org> + 28 others); Fri, 14 Aug 2015 06:17:26 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:33528 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753421AbbHNKRY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Aug 2015 06:17:24 -0400 Received: by wijp15 with SMTP id p15so14494448wij.0 for <linux-kernel@vger.kernel.org>; Fri, 14 Aug 2015 03:17:23 -0700 (PDT) X-Received: by 10.180.160.210 with SMTP id xm18mr5000765wib.93.1439547443512; Fri, 14 Aug 2015 03:17:23 -0700 (PDT) Received: from localhost.localdomain (host-92-13-246-184.as43234.net. [92.13.246.184]) by smtp.gmail.com with ESMTPSA id s1sm2340765wix.13.2015.08.14.03.17.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Aug 2015 03:17:22 -0700 (PDT) From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-arm-kernel@lists.infradead.org, dan.carpenter@oracle.com, linux-kernel@vger.kernel.org, Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, Maxime Ripard <maxime.ripard@free-electrons.com> Subject: [PATCH] nvmem: core: fix a copy paste error Date: Fri, 14 Aug 2015 11:17:18 +0100 Message-Id: <1439547438-4512-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 35a42bb..ea0d6fd 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -825,7 +825,7 @@ static int __nvmem_cell_read(struct nvmem_device *nvmem, return rc; /* shift bits in-place */ - if (cell->bit_offset || cell->bit_offset) + if (cell->bit_offset || cell->nbits) nvmem_shift_read_buffer_in_place(cell, buf); *len = cell->bytes;
This patch fixes a copy paste error in a check which is performed to determine if the cell is specified in bits or not. This warning was picked-up by a static checker. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> --- drivers/nvmem/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)