From patchwork Sat Feb 8 18:02:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Engelmayer X-Patchwork-Id: 3611101 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E2CD8BF418 for ; Sat, 8 Feb 2014 18:02:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DACCC2016C for ; Sat, 8 Feb 2014 18:02:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1A6B820163 for ; Sat, 8 Feb 2014 18:02:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751948AbaBHSCZ (ORCPT ); Sat, 8 Feb 2014 13:02:25 -0500 Received: from mout.gmx.net ([212.227.17.20]:63252 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751433AbaBHSCZ (ORCPT ); Sat, 8 Feb 2014 13:02:25 -0500 Received: from spike ([81.217.122.98]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MUTSJ-1VlQAd0APj-00RLUv for ; Sat, 08 Feb 2014 19:02:24 +0100 Date: Sat, 8 Feb 2014 19:02:23 +0100 From: Christian Engelmayer To: Mark Brown Cc: Jingoo Han , H Hartley Sweeten , Stephen Warren , Michal Nazarewicz , linux-spi@vger.kernel.org Subject: [PATCH] spi: omap-100k: Remove unused pointer in omap1_spi100k_txrx_pio() Message-ID: <20140208190223.45d1dcf8@spike> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.20; x86_64-pc-linux-gnu) Mime-Version: 1.0 X-Provags-ID: V03:K0:FACCPZRMonFfJH/UrM5NiOcIpiAJO5pWAWj2WZzAMaLLpIQfq/u V+7AkWuH/Yb0iFHUoqcYmRvnufR7egztmk7uDeOZLsCZpOhW6LWPwLJpfquBhcVdYcR2v4Q gverGpvdiKUsP42dlbBSQBjy6H+eH5lrslD9BYazWsewlJm5WPB4FVyWokpF8olreRUZXLi OahDoyLP35qyC1xG0Ah5g== Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_TVD_MIME_EPI,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 Remove unused devdata pointer 'spi100k' in function omap1_spi100k_txrx_pio(). Detected by Coverity: CID 1077869. Signed-off-by: Christian Engelmayer Reviewed-by: Jingoo Han Acked-by: Michal Nazarewicz --- Applies against v3.14-rc1 as well as branch for-next in tree git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git --- drivers/spi/spi-omap-100k.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi-omap-100k.c b/drivers/spi/spi-omap-100k.c index 0d32054..8eaf0cd 100644 --- a/drivers/spi/spi-omap-100k.c +++ b/drivers/spi/spi-omap-100k.c @@ -204,12 +204,10 @@ static void omap1_spi100k_force_cs(struct omap1_spi100k *spi100k, int enable) static unsigned omap1_spi100k_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer) { - struct omap1_spi100k *spi100k; struct omap1_spi100k_cs *cs = spi->controller_state; unsigned int count, c; int word_len; - spi100k = spi_master_get_devdata(spi->master); count = xfer->len; c = count; word_len = cs->word_len;