From patchwork Wed Feb 5 21:23:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Engelmayer X-Patchwork-Id: 3591341 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 533109F2E9 for ; Wed, 5 Feb 2014 21:23:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BB21420154 for ; Wed, 5 Feb 2014 21:23:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A394C20149 for ; Wed, 5 Feb 2014 21:23:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752647AbaBEVXJ (ORCPT ); Wed, 5 Feb 2014 16:23:09 -0500 Received: from mout.gmx.net ([212.227.17.21]:52477 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754207AbaBEVXI (ORCPT ); Wed, 5 Feb 2014 16:23:08 -0500 Received: from spike ([81.217.122.98]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LpbfG-1VXzcz0Rbq-00fUvl for ; Wed, 05 Feb 2014 22:23:07 +0100 Date: Wed, 5 Feb 2014 22:23:01 +0100 From: Christian Engelmayer To: Mark Brown Cc: linux-spi@vger.kernel.org Subject: [PATCH] spi: orion: Remove unused pointer in orion_spi_write_read() Message-ID: <20140205222301.14fbb441@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:WihBy2cS9J0PRsjFYO5zVF2SwIDXYUl+Nb6mH6HK5yY0dg6j6zy 0UqeVdtgfkCjX8FHvct9P7ssOluThPgCyNjSntf3qh34J8cyZCcQHaD020w8xo48C8WMjCd 1EtOW1z25aNWMravM4v0DrmFys6qSjNu2D29c/B/pz2UySlymYWPmJvJ73x0/oyGfuKZXgX ugNedizQep+MCJcGLIE2Q== 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 'orion_spi' in function orion_spi_write_read(). Detected by Coverity: CID 1077860. Signed-off-by: Christian Engelmayer --- drivers/spi/spi-orion.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi-orion.c b/drivers/spi/spi-orion.c index 7f2121f..75871d4 100644 --- a/drivers/spi/spi-orion.c +++ b/drivers/spi/spi-orion.c @@ -260,11 +260,9 @@ orion_spi_write_read_16bit(struct spi_device *spi, static unsigned int orion_spi_write_read(struct spi_device *spi, struct spi_transfer *xfer) { - struct orion_spi *orion_spi; unsigned int count; int word_len; - orion_spi = spi_master_get_devdata(spi->master); word_len = spi->bits_per_word; count = xfer->len;