Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1163032AbbKFWDb (ORCPT ); Fri, 6 Nov 2015 17:03:31 -0500 Received: from mta02.ornl.gov ([128.219.177.12]:48165 "EHLO mta02.ornl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030434AbbKFWDa convert rfc822-to-8bit (ORCPT ); Fri, 6 Nov 2015 17:03:30 -0500 X-SG: RELAYLIST X-IronPort-AV: E=Sophos;i="5.20,254,1444708800"; d="scan'208";a="91765367" From: "Simmons, James A." To: "'Shivani Bhardwaj'" , "gregkh@linuxfoundation.org" CC: "oleg.drokin@intel.com" , "devel@driverdev.osuosl.org" , "andreas.dilger@intel.com" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 2/3] Staging: lustre: tracefile: Remove wrapper function Thread-Topic: [PATCH 2/3] Staging: lustre: tracefile: Remove wrapper function Thread-Index: AQHRGLdSTWRUn1qvMU6M2GHozwtbup6PjF6w Date: Fri, 6 Nov 2015 22:03:28 +0000 Message-ID: <4353c108035648b689338421a2d4fe65@EXCHCS32.ornl.gov> References: <6c26beadd883d0d7cd7659ca3535ee86ed9a8213.1446830119.git.shivanib134@gmail.com> In-Reply-To: <6c26beadd883d0d7cd7659ca3535ee86ed9a8213.1446830119.git.shivanib134@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [128.219.12.132] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2150 Lines: 64 >-----Original Message----- >From: devel [mailto:driverdev-devel-bounces@linuxdriverproject.org] On Behalf Of Shivani Bhardwaj >Sent: Friday, November 06, 2015 12:19 PM >To: gregkh@linuxfoundation.org >Cc: oleg.drokin@intel.com; devel@driverdev.osuosl.org; andreas.dilger@intel.com; linux-kernel@vger.kernel.org >Subject: [PATCH 2/3] Staging: lustre: tracefile: Remove wrapper function > >Remove the function cfs_trace_free_string_buffer() as it can be replaced >with the standard function kfree(). > >Signed-off-by: Shivani Bhardwaj >--- > drivers/staging/lustre/lustre/libcfs/tracefile.c | 9 ++------- > 1 file changed, 2 insertions(+), 7 deletions(-) Acked-by: James Simmons diff --git a/drivers/staging/lustre/lustre/libcfs/tracefile.c b/drivers/staging/lustre/lustre/libcfs/tracefile.c index d55dda8..211047f 100644 --- a/drivers/staging/lustre/lustre/libcfs/tracefile.c +++ b/drivers/staging/lustre/lustre/libcfs/tracefile.c @@ -817,11 +817,6 @@ int cfs_trace_allocate_string_buffer(char **str, int nob) return 0; } -void cfs_trace_free_string_buffer(char *str, int nob) -{ - kfree(str); -} - int cfs_trace_dump_debug_buffer_usrstr(void __user *usr_str, int usr_str_nob) { char *str; @@ -842,7 +837,7 @@ int cfs_trace_dump_debug_buffer_usrstr(void __user *usr_str, int usr_str_nob) } rc = cfs_tracefile_dump_all_pages(str); out: - cfs_trace_free_string_buffer(str, usr_str_nob + 1); + kfree(str); return rc; } @@ -898,7 +893,7 @@ int cfs_trace_daemon_command_usrstr(void __user *usr_str, int usr_str_nob) if (rc == 0) rc = cfs_trace_daemon_command(str); - cfs_trace_free_string_buffer(str, usr_str_nob + 1); + kfree(str); return rc; } -- 2.1.0 _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/