From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752517AbcHUDi6 convert rfc822-to-8bit (ORCPT ); Sat, 20 Aug 2016 23:38:58 -0400 Received: from mga04.intel.com ([192.55.52.120]:5924 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752028AbcHUDi5 (ORCPT ); Sat, 20 Aug 2016 23:38:57 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,553,1464678000"; d="scan'208";a="158944679" Subject: Re: [PATCH] staging: lustre: llite: don't clean in_data again Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Oleg Drokin In-Reply-To: <1471747477-31654-1-git-send-email-shawn.lin@rock-chips.com> Date: Sat, 20 Aug 2016 23:38:49 -0400 Cc: Andreas Dilger , James Simmons , Greg Kroah-Hartman , , , Content-Transfer-Encoding: 8BIT Message-Id: References: <1471747477-31654-1-git-send-email-shawn.lin@rock-chips.com> To: Shawn Lin X-Mailer: Apple Mail (2.1283) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Acked-by: Oleg Drokin On Aug 20, 2016, at 10:44 PM, Shawn Lin wrote: > We have got a zero buffer for in_data as we use > kzalloc here. So let's remove it anyway. > > Signed-off-by: Shawn Lin > --- > > drivers/staging/lustre/lustre/llite/file.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c > index 50938bd..ec6b7ce 100644 > --- a/drivers/staging/lustre/lustre/llite/file.c > +++ b/drivers/staging/lustre/lustre/llite/file.c > @@ -3251,7 +3251,6 @@ void *ll_iocontrol_register(llioc_callback_t cb, int count, unsigned int *cmd) > if (!in_data) > return NULL; > > - memset(in_data, 0, sizeof(*in_data)); > in_data->iocd_size = size; > in_data->iocd_cb = cb; > in_data->iocd_count = count; > -- > 2.3.7 >