From patchwork Sun Dec 21 12:56:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5523991 Return-Path: X-Original-To: patchwork-linux-media@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 451239F1CD for ; Sun, 21 Dec 2014 12:54:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 75A3420155 for ; Sun, 21 Dec 2014 12:54:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 98D1E2011E for ; Sun, 21 Dec 2014 12:54:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753621AbaLUMyF (ORCPT ); Sun, 21 Dec 2014 07:54:05 -0500 Received: from mail-wi0-f181.google.com ([209.85.212.181]:39647 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753524AbaLUMyE (ORCPT ); Sun, 21 Dec 2014 07:54:04 -0500 Received: by mail-wi0-f181.google.com with SMTP id r20so5732289wiv.8 for ; Sun, 21 Dec 2014 04:54:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=t/bpb+ED9alC6PUs1ncwx4x181NyaZyw62G2/9kcx9g=; b=f/jNNT3ABXjuyTs/dZ52VdqxkqRF5+p9YqBonl8u6vPebm+NeJ/l/SRTPnz1O56gFD +WU0YHKGcsQIp3InMq6GLFPc0Np54ZdtGqmnhUiXTelEXjaghAKGi9B9eX/Z18F4Dcpk CFoegaPFJFIpN/uirOwK26plTE17rdyykCp2g/krzCBh4v++5DeZV1Z/4KbFYsKBLpRe R7Gj0GuHlyyZrz69bT0gXqmPVh3GNBM8th1BfCfFfsRwj6tNY109NEgzZeSQxh+mtKn+ M1ad79DOTsGd4qhVjjBRW2oNNmV1t4RHKV7O6AkA6jQGKXTRCXvzirQbb7uxl26zVV/M MjxA== X-Gm-Message-State: ALoCoQno/gGBceNQmiWsqSzT3+BNIvTsMcuj2FNGVJWarJyHIsl12m6YJKZylmoiMOaXc4ApUqoo X-Received: by 10.194.156.161 with SMTP id wf1mr31495818wjb.134.1419166442561; Sun, 21 Dec 2014 04:54:02 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id s4sm9402348wiy.13.2014.12.21.04.54.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Dec 2014 04:54:01 -0800 (PST) From: Rickard Strandqvist To: Mauro Carvalho Chehab , Hans Verkuil Cc: Rickard Strandqvist , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: radio: wl128x: fmdrv_rx.c: Remove unused function Date: Sun, 21 Dec 2014 13:56:49 +0100 Message-Id: <1419166609-2320-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 the function fm_rx_get_rds_system() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/media/radio/wl128x/fmdrv_rx.c | 16 ---------------- drivers/media/radio/wl128x/fmdrv_rx.h | 1 - 2 files changed, 17 deletions(-) diff --git a/drivers/media/radio/wl128x/fmdrv_rx.c b/drivers/media/radio/wl128x/fmdrv_rx.c index 09632cb..cfaeb24 100644 --- a/drivers/media/radio/wl128x/fmdrv_rx.c +++ b/drivers/media/radio/wl128x/fmdrv_rx.c @@ -785,22 +785,6 @@ int fm_rx_set_rds_system(struct fmdev *fmdev, u8 rds_mode) return 0; } -/* Returns current RDS operation mode */ -int fm_rx_get_rds_system(struct fmdev *fmdev, u8 *rds_mode) -{ - if (fmdev->curr_fmmode != FM_MODE_RX) - return -EPERM; - - if (rds_mode == NULL) { - fmerr("Invalid memory\n"); - return -ENOMEM; - } - - *rds_mode = fmdev->rx.rds_mode; - - return 0; -} - /* Configures Alternate Frequency switch mode */ int fm_rx_set_af_switch(struct fmdev *fmdev, u8 af_mode) { diff --git a/drivers/media/radio/wl128x/fmdrv_rx.h b/drivers/media/radio/wl128x/fmdrv_rx.h index 32add81..2392218 100644 --- a/drivers/media/radio/wl128x/fmdrv_rx.h +++ b/drivers/media/radio/wl128x/fmdrv_rx.h @@ -40,7 +40,6 @@ void fm_rx_reset_station_info(struct fmdev *); int fm_rx_seek(struct fmdev *, u32, u32, u32); int fm_rx_get_rds_mode(struct fmdev *, u8 *); -int fm_rx_get_rds_system(struct fmdev *, u8 *); int fm_rx_get_mute_mode(struct fmdev *, u8 *); int fm_rx_get_volume(struct fmdev *, u16 *); int fm_rx_get_band_freq_range(struct fmdev *,