Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2728402imm; Tue, 4 Sep 2018 09:04:48 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYsqbADyT6D5xSNGPkY/rs7vjFZw6r1yvp0Wb8jIxpSurTJFYhY4IOUd+AeX/LGXRXwVUgT X-Received: by 2002:a17:902:68:: with SMTP id 95-v6mr33828502pla.248.1536077088441; Tue, 04 Sep 2018 09:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536077088; cv=none; d=google.com; s=arc-20160816; b=mAeWKGRe/BqRpy4AeEQUKVt73jwfaTZ2Wect8d9zk3xbK2wWLrpbR6HtB8q6WyI6AX wBHMZPCcBccSfII1hUGDJOK+lWhkqr5F/rAh5nc33lS9d1UfSdkzy3rMiCgM06VRMtRD LPYZkjjocBpT8txgE4wAZtYYX8DXt9ieSf3UPGieO9GNhevQHxA31A/gzWAYOO8+Jqmv KSZoULlOJj5rgE4A+cIsbu9c5NjKceJzmaCVqKdcaSas4Y51PjOLd16csAGMC+KfUT+8 Ka3ImCGJYHFhDLv4NhqevoBzwealcjXnS3b3jjTUkkMWcoD44wLyZ57EjKqA0ox9CgiK 7d7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=7j29HqVvCEBrVnScq1PpXOhXSEGgu/oHJBWq65gE/f4=; b=h+mUUXcAIYIa9dKEqTIpxCeZN9pstdaEr5YWUW7kRe14Bik+igfUX1+rlR0ZaGmGKv Qxe9QeuRC7iWy5SRCH+ZjHq3lZ/7QAxalb0zbIQj4ubPZME59dbl/Nl+byuoF5DyBP5Y w5u8f8MKFc6pdDf7tQxIuHP5oC2Uhvi55zuvXVt5V+wSrf+niXePWDspUi8T06jHKeT8 6sLx7gFTmkhzMynj6cazVU9b2W+dBhPNu50C6smdIwczuoLGEOh7l47Y546Ws5VFqPc/ nCG9r9oZu35ZNViz6EWjTVCJkX87QrbAtVQDNlVOOdma8vHCTV+f1h0795W3O9EvnowW 135Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u22-v6si3346256plk.443.2018.09.04.09.04.25; Tue, 04 Sep 2018 09:04:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728221AbeIDU1R (ORCPT + 99 others); Tue, 4 Sep 2018 16:27:17 -0400 Received: from mx2.suse.de ([195.135.220.15]:50978 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727680AbeIDUYs (ORCPT ); Tue, 4 Sep 2018 16:24:48 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1262BB0A5; Tue, 4 Sep 2018 15:59:02 +0000 (UTC) From: Takashi Iwai To: Greg Kroah-Hartman Cc: Eric Anholt , Stefan Wahren , linux-rpi-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/29] staging: bcm2835-audio: Kill unused spinlock Date: Tue, 4 Sep 2018 17:58:39 +0200 Message-Id: <20180904155858.8001-11-tiwai@suse.de> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180904155858.8001-1-tiwai@suse.de> References: <20180904155858.8001-1-tiwai@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The alsa_stream->lock is never used. Kill it. Signed-off-by: Takashi Iwai --- drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c | 2 -- drivers/staging/vc04_services/bcm2835-audio/bcm2835.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c index 00c2abab4bba..fc1b345d206c 100644 --- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c +++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c @@ -128,8 +128,6 @@ static int snd_bcm2835_playback_open_generic( alsa_stream->substream = substream; alsa_stream->idx = idx; - spin_lock_init(&alsa_stream->lock); - err = bcm2835_audio_open(alsa_stream); if (err) { kfree(alsa_stream); diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.h b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.h index 2a9f3d6c10dc..20f5ff1649e6 100644 --- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.h +++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.h @@ -119,8 +119,6 @@ struct bcm2835_alsa_stream { struct snd_pcm_substream *substream; struct snd_pcm_indirect pcm_indirect; - spinlock_t lock; - int draining; int channels; -- 2.18.0