From patchwork Tue Jun 25 18:17:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishka Dasgupta X-Patchwork-Id: 11016285 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D85091575 for ; Tue, 25 Jun 2019 18:17:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C989528448 for ; Tue, 25 Jun 2019 18:17:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD82228474; Tue, 25 Jun 2019 18:17:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7235828448 for ; Tue, 25 Jun 2019 18:17:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=6ia4ofJ2uATQZXzk5fvi29+O9YDbhEBr7uNfuUG3kao=; b=D3HqHzFp+rBLFc +uUeL1c9qEakTHALacPghPlNSvndoGCGt/RJm5HwLgHtJeMvnHeO2mu7p7C3y1q5Z79a2p7OLAWSO kTl/aADMitbvDFiX9Imemz3NpNbkkMiugZXmravhtz4Xqr3PMA1l1vccPtpLUIABLlj1vZtCVzu8n h+Cktt46AZagiObHiQhqZMfPJQoAbt42vMHNMIH4fEEG9jcqEOqVUQOmogCsEoga+hnv71t1U4xOo E2u4q4sMHCp9GZSubk+NscSMzl7V7S8tb96CwqJLLLW5u5ycDQjxWg/v26P1X59CoQXDXDUTU2jn+ uUDjx3qwdzBz+RpNPreQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hfq0a-0003gv-ID; Tue, 25 Jun 2019 18:17:32 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hfq0U-0003em-Ej; Tue, 25 Jun 2019 18:17:27 +0000 Received: by mail-pl1-x641.google.com with SMTP id b7so9294167pls.6; Tue, 25 Jun 2019 11:17:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ic2sos3p2ZO51dPXYEpE88vNYNF9xpgqADXaFZWGMEA=; b=BtjPMi1+Roch459MDj3Oht2eS9e6nKl1QAR6lmeAee2jCJb7iKVK8kfRlDB1ZsZziM /VOV/m5RebeHOGoZHds8M1Y33qn6ZZ9xz4GyP5ATCD6q8YYgLZilB9XC6as/8dZHZDax I9IZRxdLrghDjbaLK29OTAcGO3vZoSs6f06t5PsNRZ9RwXYQAPfMuE4mxturp8tMw0Ke EdLggZl0UQ472RYIaY7S5eVQbqLpCbL9sHOyHfoprpiV7wd4xHPZa90Jm2SBcl1H70LC +gMKHt1UnjDkrzDTco17QZJV90nn8SaNevFW2+5Gyy3PoYuYkWsK1AMr3OxKMRNn8frd ABtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ic2sos3p2ZO51dPXYEpE88vNYNF9xpgqADXaFZWGMEA=; b=fG2t6Ug5UIGe0xK1YSgMoSzinA+Yt8WrDukHQvAorFGCC4IcGDpGSNym7YZeaDgKU9 YEAsKfkh3yNi24rFJ47EsP96jx/xZaakTJncsFh2RzyIn2EW3zpfmle0iCf9DxzCcXgV nyC8RO2XfiVguQd2SWNUp1zqQEcw5UF5ZUX9t+iDzA4zF24gPtSk65ef8pFUI1D31AcM vghVrgdm3zVURSeHnI1uiqa6GiemnCjWm6Gzrqa5pW9VLneMlDJp34Yt+bnd6vvAwefR u/qfvRakgXOocrOITp6d/JqrtRdchujbndonAesGCCUQHyt1fvwW4dqkqfr58caaVxF3 Wt/g== X-Gm-Message-State: APjAAAUCluNLNSsJ/e1OM5Nx+m+S6RlzqdhxLwvER9QutAf/dcKfkB3x tYqTKQXgT3A8VY3MznRPkzY= X-Google-Smtp-Source: APXvYqzFgH6YNemAXMamssS24KzgeSF3SUtZouLUzp2jMdNUAptfS71nh+KiZb/gK5Cr/UGn9yaGjA== X-Received: by 2002:a17:902:22:: with SMTP id 31mr40001pla.15.1561486645099; Tue, 25 Jun 2019 11:17:25 -0700 (PDT) Received: from localhost.localdomain ([122.163.71.137]) by smtp.gmail.com with ESMTPSA id w7sm14042959pfb.117.2019.06.25.11.17.20 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 25 Jun 2019 11:17:24 -0700 (PDT) From: Nishka Dasgupta To: eric@anholt.net, wahrenst@gmx.net, gregkh@linuxfoundation.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org Subject: [PATCH 1/9] staging: vc04_services: Remove function vchiu_queue_is_full() Date: Tue, 25 Jun 2019 23:47:01 +0530 Message-Id: <20190625181710.2267-1-nishkadg.linux@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190625_111726_497418_12582721 X-CRM114-Status: UNSURE ( 6.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nishka Dasgupta Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Remove unused function vchiu_queue_is_full. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta --- .../staging/vc04_services/interface/vchiq_arm/vchiq_util.c | 5 ----- .../staging/vc04_services/interface/vchiq_arm/vchiq_util.h | 1 - 2 files changed, 6 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c index 8ee85c5e6f77..5e6d3035dc05 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c @@ -39,11 +39,6 @@ int vchiu_queue_is_empty(struct vchiu_queue *queue) return queue->read == queue->write; } -int vchiu_queue_is_full(struct vchiu_queue *queue) -{ - return queue->write == queue->read + queue->size; -} - void vchiu_queue_push(struct vchiu_queue *queue, struct vchiq_header *header) { if (!queue->initialized) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.h b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.h index ee1459468171..f03a4250de0d 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.h +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.h @@ -40,7 +40,6 @@ extern int vchiu_queue_init(struct vchiu_queue *queue, int size); extern void vchiu_queue_delete(struct vchiu_queue *queue); extern int vchiu_queue_is_empty(struct vchiu_queue *queue); -extern int vchiu_queue_is_full(struct vchiu_queue *queue); extern void vchiu_queue_push(struct vchiu_queue *queue, struct vchiq_header *header);