From patchwork Thu Jan 1 16:55:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5557251 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8D5D5BF6C3 for ; Thu, 1 Jan 2015 16:58:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 83B802024C for ; Thu, 1 Jan 2015 16:58:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A63312021B for ; Thu, 1 Jan 2015 16:58:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751544AbbAAQ61 (ORCPT ); Thu, 1 Jan 2015 11:58:27 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:62637 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751007AbbAAQ60 (ORCPT ); Thu, 1 Jan 2015 11:58:26 -0500 Received: by mail-wi0-f169.google.com with SMTP id r20so28235355wiv.0 for ; Thu, 01 Jan 2015 08:58:25 -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=oDJWoxOoDLnqyhOWHcQa1u9XzVegl//zVNJ/vPjuOJg=; b=cfON7OhU8b84IZDtPHh+4v1q05Vctd24gGs/9N1rD4gR6Q4x38Xd+rvEbjR5VWwyvF UKTmpyZvne8H80sQZeIyLw+0zEOVjVKwQqi3vmHfbceR+K7HTLRpd87rchz95hhTMkRx 9jG+7VMZHtjMECCNDolP6VM/4WECTNYuMt18+PMLhhcoqWHLHfTpMZFjBBmuGo0EzI2J WL2WKl2hdTKqZvNEZRlR2ynqsRmNsiIaWIp4dwwb0qmBfp6K+lKgv8F8S202tBJBhYxc S14gPzUuDtGpjI5yPNTNnpTGUwO/gXZfrN1lkcjDNWOZvS0R+kbGD1wtUCSqzjfSwyRB uDJA== X-Gm-Message-State: ALoCoQmlpBfIyrPH0eJedt9xGcMeIcJ3JDWm9wbBYnABTPnlM7yK3dUOaGK7kPZ5GjAXy2+jNXXW X-Received: by 10.194.187.235 with SMTP id fv11mr141050623wjc.16.1420131119868; Thu, 01 Jan 2015 08:51:59 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id u3sm50988715wiw.24.2015.01.01.08.51.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jan 2015 08:51:59 -0800 (PST) From: Rickard Strandqvist To: Mauro Carvalho Chehab , linux-media@vger.kernel.org Cc: Rickard Strandqvist , linux-kernel@vger.kernel.org Subject: [PATCH] media: pci: mantis: mantis_core.c: Remove unused function Date: Thu, 1 Jan 2015 17:55:01 +0100 Message-Id: <1420131301-30273-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 write_eeprom_byte() 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/pci/mantis/mantis_core.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/drivers/media/pci/mantis/mantis_core.c b/drivers/media/pci/mantis/mantis_core.c index 684d906..82220ea 100644 --- a/drivers/media/pci/mantis/mantis_core.c +++ b/drivers/media/pci/mantis/mantis_core.c @@ -56,29 +56,6 @@ static int read_eeprom_byte(struct mantis_pci *mantis, u8 *data, u8 length) return 0; } -static int write_eeprom_byte(struct mantis_pci *mantis, u8 *data, u8 length) -{ - int err; - - struct i2c_msg msg = { - .addr = 0x50, - .flags = 0, - .buf = data, - .len = length - }; - - err = i2c_transfer(&mantis->adapter, &msg, 1); - if (err < 0) { - dprintk(verbose, MANTIS_ERROR, 1, - "ERROR: i2c write: < err=%i length=0x%02x d0=0x%02x, d1=0x%02x >", - err, length, data[0], data[1]); - - return err; - } - - return 0; -} - static int get_mac_address(struct mantis_pci *mantis) { int err;