From patchwork Mon Aug 10 02:33:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 6979131 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@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 19D0FC05AC for ; Mon, 10 Aug 2015 02:33:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 33CA2206E6 for ; Mon, 10 Aug 2015 02:33:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4130120734 for ; Mon, 10 Aug 2015 02:33:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752635AbbHJCdu (ORCPT ); Sun, 9 Aug 2015 22:33:50 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:35046 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752524AbbHJCdn (ORCPT ); Sun, 9 Aug 2015 22:33:43 -0400 Received: by pacgr6 with SMTP id gr6so15835390pac.2 for ; Sun, 09 Aug 2015 19:33:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ij6Et2iFNBppJ9iwUq5nFHk+iBZGv7fYBLnI7jVJp+A=; b=Ugq219GS5zvxKkNwBx6RbPfwnoERScb9+QlhjqFUVXZkWa0CWzht7GRZUoiOCRguV4 B4aKajWozViDJ8dmOtWiOWqpbATeV2kPzn0RSbtBa7kroC+xC3ep6+RBctjOSAMiY058 NW34X4oGlQTLiYCEkHwC7CcAfNX3KuPRWsQvCLIRu9TLdmZjzRgrw6ol/YtoNTM23Yeo ox7qLi9sxtfPkFj7OmfG96coF28f9KElTOKk425LAkurJrC1XGaewgaSsVfgtWFiPufJ 6LaaKDgFR6g1QnjuRfNCRMqcBpgFsykm4vdpb5sgk7EDbN5gmX1n+MA8CxkBPRQBgqxi euOg== X-Received: by 10.68.250.98 with SMTP id zb2mr39765457pbc.40.1439174023017; Sun, 09 Aug 2015 19:33:43 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id k10sm17650088pbq.63.2015.08.09.19.33.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 09 Aug 2015 19:33:42 -0700 (PDT) From: Chaehyun Lim To: gregkh@linuxfoundation.org Cc: johnny.kim@atmel.com, rachel.kim@atmel.com, dean.lee@atmel.com, chris.park@atmel.com, linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, Chaehyun Lim Subject: [PATCH 05/11] staging: wilc1000: remove WILC_strncpy function Date: Mon, 10 Aug 2015 11:33:16 +0900 Message-Id: <1439174002-7365-5-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439174002-7365-1-git-send-email-chaehyun.lim@gmail.com> References: <1439174002-7365-1-git-send-email-chaehyun.lim@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 WILC_strncpy function that is changed to strncpy. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/wilc_strutils.c | 10 ---------- drivers/staging/wilc1000/wilc_strutils.h | 14 -------------- 2 files changed, 24 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_strutils.c b/drivers/staging/wilc1000/wilc_strutils.c index 205a06a..337e62f 100644 --- a/drivers/staging/wilc1000/wilc_strutils.c +++ b/drivers/staging/wilc1000/wilc_strutils.c @@ -17,16 +17,6 @@ void WILC_memcpy_INTERNAL(void *pvTarget, const void *pvSource, u32 u32Count) } -/*! - * @author syounan - * @date 18 Aug 2010 - * @version 1.0 - */ -char *WILC_strncpy(char *pcTarget, const char *pcSource, - u32 u32Count) -{ - return strncpy(pcTarget, pcSource, u32Count); -} s32 WILC_strncmp(const char *pcStr1, const char *pcStr2, u32 u32Count) diff --git a/drivers/staging/wilc1000/wilc_strutils.h b/drivers/staging/wilc1000/wilc_strutils.h index 7c38e14..86728d2 100644 --- a/drivers/staging/wilc1000/wilc_strutils.h +++ b/drivers/staging/wilc1000/wilc_strutils.h @@ -59,20 +59,6 @@ static WILC_ErrNo WILC_memcpy(void *pvTarget, const void *pvSource, u32 u32Count } -/*! - * @brief copies the contents of source string into the target string - * @param[in] pcTarget the target string buffer - * @param[in] pcSource the source string the will be copied - * @param[in] u32Count copying will proceed until a null character in pcSource - * is encountered or u32Count of bytes copied - * @return value of pcTarget - * @note this function repeats the functionality of standard strncpy - * @author syounan - * @date 18 Aug 2010 - * @version 1.0 - */ -char *WILC_strncpy(char *pcTarget, const char *pcSource, - u32 u32Count); /*! * @brief Compares two strings up to u32Count characters