Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp585265imu; Mon, 26 Nov 2018 15:22:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/XRhT/FbeGbv4ATohXFS3pgaHRCQdvp9Z1N72TTosHJFapBWuxNZa5j+nHY3xWmcc07Zl4T X-Received: by 2002:a63:ff62:: with SMTP id s34mr27043315pgk.325.1543274548823; Mon, 26 Nov 2018 15:22:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543274548; cv=none; d=google.com; s=arc-20160816; b=Jx+kLwcD9y5s8UMFcNsJst9MmcIKoqkHowT4Pt2lbjn2udrQWxuybsqZMwsbWv6UmU H8o8TcUYMoPX48YmUODN67Ffyc6aDFcBfqm2wfOI8s2rmWkiogqESJ8nq4119VxOxWCx UbENrdDO+w6XcuNLzu6k7aX1KZB5DcWmKMobpNSzKOKfUUfBbyVpfHKdCXcRqAyZi4eB 0y2L4KtMTLEm0Ihs+CD8CAxByUbCY0nIPLvrSzlhocuy3/Nx7xorLn9PpTgfpSc1CABN q0ZgCkA764CLqV4/fEpreFdd1KEhOpghC7QCW8UOGQlA+GkKH5MCK+fM6ITMMLRZ+Gpz bTJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=M4m58yeJ7cdwSGop/2oQTjIHI9CooPl92CFXapzyeCY=; b=mG5vdJZH7w34Nhw+VSJyHzaGFyJF661OTy3SFzoqqB1OyPSxF4t3q0BXd00fqunGKK 0a90I8yyMtzzyFRq7aAzDNECOOK/yxVKxGsSsIXI+d2N20EAZQodNHFcmPYBcMDrguYq n+1ffmrnRawyz2WbzASfTPb+snAUkp1XAwQbue7sXNv5fxiePLT9yXJovST5+ubSpa0s u+lB6QQJtcSTt75kgNgNQZqJZBDOMbzZU7sTWNLqhe1k37nRWjnf1bmNAxbv6Cznhs0m eS6O8anKeTicHUX0MRmQLLvJ9ASdSPR1Ds+krqlGTSOuu7N1Hx69BSuBPXOU8EaOkeop lwYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EVcxLIqo; 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 d7si1837428pfo.108.2018.11.26.15.22.13; Mon, 26 Nov 2018 15:22:28 -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=@gmail.com header.s=20161025 header.b=EVcxLIqo; 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 S1727621AbeK0KPc (ORCPT + 99 others); Tue, 27 Nov 2018 05:15:32 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:33428 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726634AbeK0KPa (ORCPT ); Tue, 27 Nov 2018 05:15:30 -0500 Received: by mail-wr1-f65.google.com with SMTP id c14so15096673wrr.0 for ; Mon, 26 Nov 2018 15:19:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=M4m58yeJ7cdwSGop/2oQTjIHI9CooPl92CFXapzyeCY=; b=EVcxLIqo5M3c2rHmKLeaxX8Ey4vPd9888vkjm4MoJ9eyR2cQH3SUVoWo5yPLoJnI/k vNZnXHztEgg1G2KUCl+s4bhDAR3FgNxWBNramKjTNMyzXYv/qxtyd6IZy77bn2o8Z98m VmrgvWHjsyJLoDMOyLkGyNIcz/ol878fmtU/QtYkaP5Hd0GUJSRaqTL8pdeasxSEmkF9 X41Dml8vhpoSG6IR4sqlWjIhbIzY55zK7Ynn7lIwF9VzOHIPgiTbpiEg0faVBc61Ro/P mq8F3w0wDxQDZutAhhuAvyVsreRDDJNfeb3uOcWPqCrp+w9ObfXee1E8FCxyNBzjlU9c o6WA== 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:in-reply-to :references; bh=M4m58yeJ7cdwSGop/2oQTjIHI9CooPl92CFXapzyeCY=; b=Y+t+JudiK9Lw6C+gOHwLx31iy/NPTViB6hOOjcapDZUGsg3J8nIFYSklmvzByG+lWj m/j+6Qrj8NVA++V6Lbp5va/ZIyAxWwwgvdG++7gfHR2ZVM+CvmYgdjiEfRqL8DGEqUER Rn3ityTTGEAWX7YIDb0MuCwgrgcYEy4j0cb/KFkelU3laGAfndKgWi7usB8Tj4lgoIOK qyiOCIbGkEi9pLsUV+r4AgM+dbHNnFWEqXO4xZ5+tY5BTOnMjVUjQnNsYTFKkWoQBqgc +7uVr1KuT3oqynVC3M+5ppmqybGaq5a00fzN/zzjbJg+1wizUrP7IYHrhj0zWpS8wpT9 qtnA== X-Gm-Message-State: AA+aEWbCOnpRtuVazAKFWAanGo7bHozq7NrCoZbznPg2OijROnq65DlN 8XJOXzv32yLIdTad27//IfE= X-Received: by 2002:adf:ef50:: with SMTP id c16mr24899022wrp.198.1543274384325; Mon, 26 Nov 2018 15:19:44 -0800 (PST) Received: from localhost (host102-98-dynamic.181-80-r.retail.telecomitalia.it. [80.181.98.102]) by smtp.gmail.com with ESMTPSA id t69-v6sm2389863wmt.5.2018.11.26.15.19.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Nov 2018 15:19:43 -0800 (PST) From: Cristian Sicilia To: Greg Kroah-Hartman , Carmeli Tamir , Christopher Diaz Riveros , Dan Carpenter , Arkadiusz Lis , Nathan Chancellor Cc: Cristian Sicilia , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] staging: emxx_udc: Added a temporary variable with address. Date: Tue, 27 Nov 2018 00:19:09 +0100 Message-Id: <1543274351-25762-3-git-send-email-sicilia.cristian@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1543274351-25762-1-git-send-email-sicilia.cristian@gmail.com> References: <1543274351-25762-1-git-send-email-sicilia.cristian@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace the IO_ADDRESS call with a temporary variable. Signed-off-by: Cristian Sicilia --- drivers/staging/emxx_udc/emxx_udc.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index ebc622f..d55cadd 100644 --- a/drivers/staging/emxx_udc/emxx_udc.c +++ b/drivers/staging/emxx_udc/emxx_udc.c @@ -108,20 +108,22 @@ static void _nbu2ss_dump_register(struct nbu2ss_udc *udc) dev_dbg(&udc->dev, "\n-USB REG-\n"); for (i = 0x0 ; i < USB_BASE_SIZE ; i += 16) { - reg_data = _nbu2ss_readl( - (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i)); + u32 *tmp; + + tmp = (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i); + reg_data = _nbu2ss_readl(tmp); dev_dbg(&udc->dev, "USB%04x =%08x", i, (int)reg_data); - reg_data = _nbu2ss_readl( - (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 4)); + tmp = (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 4); + reg_data = _nbu2ss_readl(tmp); dev_dbg(&udc->dev, " %08x", (int)reg_data); - reg_data = _nbu2ss_readl( - (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 8)); + tmp = (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 8); + reg_data = _nbu2ss_readl(tmp); dev_dbg(&udc->dev, " %08x", (int)reg_data); - reg_data = _nbu2ss_readl( - (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 12)); + tmp = (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 12); + reg_data = _nbu2ss_readl(tmp); dev_dbg(&udc->dev, " %08x\n", (int)reg_data); } -- 2.7.4