From patchwork Wed Sep 9 16:33:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yousong Zhou X-Patchwork-Id: 7147471 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1A7EABEEC1 for ; Wed, 9 Sep 2015 16:37:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4F4D6209FE for ; Wed, 9 Sep 2015 16:37:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 77C15209FC for ; Wed, 9 Sep 2015 16:37:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753566AbbIIQhe (ORCPT ); Wed, 9 Sep 2015 12:37:34 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:36215 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753426AbbIIQhe (ORCPT ); Wed, 9 Sep 2015 12:37:34 -0400 Received: by padhk3 with SMTP id hk3so14874172pad.3 for ; Wed, 09 Sep 2015 09:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=fJVBhh9Fw5WXwaPIm0cGAs/bS7pFDqpv/GbD08UlcJ0=; b=dF6a/OWp3BWCDm4YrtzZVMWnPxFiriQn+i5VebnOPSt8KvWOKB+bfW1hz9fm9Lq/gF tdjzgBM4Pa3f42yNtz+p7C6w8wyNz11KXdQAPH9EI7AWsc8fCA8n9X3yywRj/tP9MVIF YW3G0tU7wC4XWTv5JAV4PQU7zPM/gLe2ek1OX6K27hqkmxyTOhzW6M8MgUpTcbCI+wZg JiTYkEiFi0wYPlPNBBvzOEq+nebVYMjhUmArpxRrZVftH8GIvsC8CnerWDwDavJG3hOi blmNFqpWIlgAnhaTkkl6tdaclZb9GGDw/XcXuV/V5fcE6lo+vP9mkvQHHztWnuxXwh+h NOWQ== X-Received: by 10.66.226.37 with SMTP id rp5mr63991928pac.49.1441816653689; Wed, 09 Sep 2015 09:37:33 -0700 (PDT) Received: from debian.corp.sankuai.com ([103.29.140.56]) by smtp.gmail.com with ESMTPSA id py6sm3229859pbb.62.2015.09.09.09.37.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 09:37:33 -0700 (PDT) From: Yousong Zhou To: Ulf Hansson Cc: Hans de Goede , Shawn Lin , linux-mmc@vger.kernel.org, Yousong Zhou Subject: [PATCH 1/3] mmc: sd: Remove superfluous error code assignment Date: Thu, 10 Sep 2015 00:33:16 +0800 Message-Id: <1441816398-4330-1-git-send-email-yszhou4tech@gmail.com> X-Mailer: git-send-email 1.7.10.4 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Yousong Zhou --- drivers/mmc/core/sd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index 4e7366a..e28ebf3 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c @@ -357,8 +357,6 @@ int mmc_sd_switch_hs(struct mmc_card *card) if (card->sw_caps.hs_max_dtr == 0) return 0; - err = -EIO; - status = kmalloc(64, GFP_KERNEL); if (!status) { pr_err("%s: could not allocate a buffer for "