From patchwork Tue Nov 25 11:37:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juergen Borleis X-Patchwork-Id: 414637 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ee0-x23b.google.com (mail-ee0-x23b.google.com [IPv6:2a00:1450:4013:c00::23b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3B1C2140168 for ; Tue, 25 Nov 2014 22:37:55 +1100 (AEDT) Received: by mail-ee0-f59.google.com with SMTP id e49sf67539eek.4 for ; Tue, 25 Nov 2014 03:37:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:x-original-sender :x-original-authentication-results:reply-to:content-type:precedence :mailing-list:list-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe; bh=xqT/t5eLo5AL2xOW/8xn7LZvHjL7mGXzrft+9VwijAI=; b=tubXtBrEJy3Fsa3shhPHPErdyD4PYYQLiqw3rbhP7TeOcmt4zrwgpxfttCjdc1ImcB Nl2zWmA0oYB1r4OAz4MTcsq06RJ6U/pSD0GMhjuiVngI/wHzkKnyZw5T4Q4EEfSBB9zp HztKaR5MAgXtzMCwCrM/tyCcbfTahqaKLC8gLjwC01aU6L3t6ye8nndD6FFGliJrbolO hhQS76vR53bH5+UoyVHPPi8ul18qNoysB+5Ri3fNktMuLGbesGNwR8P4xQe9PqIBOqV/ 53o6cX1zSGq2Px3K/3MH6p3wvsfF6PubMIH9qRfcKJo52mHdxZTWfx18ZlSNiSdp8ijb DvJQ== X-Received: by 10.180.75.198 with SMTP id e6mr85284wiw.21.1416915471377; Tue, 25 Nov 2014 03:37:51 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.180.99.105 with SMTP id ep9ls606101wib.48.gmail; Tue, 25 Nov 2014 03:37:50 -0800 (PST) X-Received: by 10.180.19.42 with SMTP id b10mr6982909wie.0.1416915470969; Tue, 25 Nov 2014 03:37:50 -0800 (PST) Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de. [2001:6f8:1178:4:290:27ff:fe1d:cc33]) by gmr-mx.google.com with ESMTPS id j6si385713wix.1.2014.11.25.03.37.50 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 25 Nov 2014 03:37:50 -0800 (PST) Received-SPF: none (google.com: jbe@pengutronix.de does not designate permitted sender hosts) client-ip=2001:6f8:1178:4:290:27ff:fe1d:cc33; Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XtERJ-0003SJ-Ia; Tue, 25 Nov 2014 12:37:49 +0100 Received: from jbe by dude.hi.pengutronix.de with local (Exim 4.84) (envelope-from ) id 1XtERI-0005OG-TB; Tue, 25 Nov 2014 12:37:48 +0100 From: Juergen Borleis To: rtc-linux@googlegroups.com Cc: Alessandro Zummo , linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: [rtc-linux] [PATCH 1/2] RTC/i.MX/DryIce: trivial clean up code Date: Tue, 25 Nov 2014 12:37:47 +0100 Message-Id: <1416915468-20552-1-git-send-email-jbe@pengutronix.de> X-Mailer: git-send-email 2.1.3 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: jbe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: rtc-linux@googlegroups.com X-Original-Sender: jbe@pengutronix.de X-Original-Authentication-Results: gmr-mx.google.com; spf=none (google.com: jbe@pengutronix.de does not designate permitted sender hosts) smtp.mail=jbe@pengutronix.de Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Signed-off-by: Juergen Borleis --- drivers/rtc/rtc-imxdi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-imxdi.c b/drivers/rtc/rtc-imxdi.c index cd741c7..a2544f0 100644 --- a/drivers/rtc/rtc-imxdi.c +++ b/drivers/rtc/rtc-imxdi.c @@ -313,7 +313,7 @@ static irqreturn_t dryice_norm_irq(int irq, void *dev_id) dier = __raw_readl(imxdi->ioaddr + DIER); /* handle write complete and write error cases */ - if ((dier & DIER_WCIE)) { + if (dier & DIER_WCIE) { /*If the write wait queue is empty then there is no pending operations. It means the interrupt is for DryIce -Security. IRQ must be returned as none.*/ @@ -322,7 +322,7 @@ static irqreturn_t dryice_norm_irq(int irq, void *dev_id) /* DSR_WCF clears itself on DSR read */ dsr = __raw_readl(imxdi->ioaddr + DSR); - if ((dsr & (DSR_WCF | DSR_WEF))) { + if (dsr & (DSR_WCF | DSR_WEF)) { /* mask the interrupt */ di_int_disable(imxdi, DIER_WCIE); @@ -335,7 +335,7 @@ static irqreturn_t dryice_norm_irq(int irq, void *dev_id) } /* handle the alarm case */ - if ((dier & DIER_CAIE)) { + if (dier & DIER_CAIE) { /* DSR_WCF clears itself on DSR read */ dsr = __raw_readl(imxdi->ioaddr + DSR); if (dsr & DSR_CAF) {