From patchwork Sun Jun 9 19:10:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 2694701 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 48F7540213 for ; Sun, 9 Jun 2013 19:06:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751404Ab3FITG4 (ORCPT ); Sun, 9 Jun 2013 15:06:56 -0400 Received: from smtp-out-250.synserver.de ([212.40.185.250]:1086 "EHLO smtp-out-250.synserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751405Ab3FITGz (ORCPT ); Sun, 9 Jun 2013 15:06:55 -0400 Received: (qmail 9093 invoked by uid 0); 9 Jun 2013 19:06:49 -0000 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@laprican.de X-SynServer-PPID: 8900 Received: from ppp-188-174-124-32.dynamic.mnet-online.de (HELO lars-laptop.fritz.box) [188.174.124.32] by 217.119.54.87 with SMTP; 9 Jun 2013 19:06:48 -0000 From: Lars-Peter Clausen To: Chris Ball Cc: Paul Cercueil , Maarten ter Huurne , linux-mmc@vger.kernel.org, Lars-Peter Clausen Subject: [PATCH 2/6] mmc: JZ4740: Remove duplicated code. Date: Sun, 9 Jun 2013 21:10:01 +0200 Message-Id: <1370805005-8104-2-git-send-email-lars@metafoo.de> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1370805005-8104-1-git-send-email-lars@metafoo.de> References: <1370805005-8104-1-git-send-email-lars@metafoo.de> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org From: Paul Cercueil Signed-off-by: Paul Cercueil Signed-off-by: Lars-Peter Clausen --- drivers/mmc/host/jz4740_mmc.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/mmc/host/jz4740_mmc.c b/drivers/mmc/host/jz4740_mmc.c index c4f3872..b31359d 100644 --- a/drivers/mmc/host/jz4740_mmc.c +++ b/drivers/mmc/host/jz4740_mmc.c @@ -560,11 +560,6 @@ static irqreturn_t jz_mmc_irq(int irq, void *devid) if (cmd->data) cmd->data->error = -EIO; cmd->error = -EIO; - } else if (status & (JZ_MMC_STATUS_CRC_READ_ERROR | - JZ_MMC_STATUS_CRC_WRITE_ERROR)) { - if (cmd->data) - cmd->data->error = -EIO; - cmd->error = -EIO; } jz4740_mmc_set_irq_enabled(host, irq_reg, false);