Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751221AbdH1HSh (ORCPT ); Mon, 28 Aug 2017 03:18:37 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36132 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751187AbdH1HSg (ORCPT ); Mon, 28 Aug 2017 03:18:36 -0400 Date: Mon, 28 Aug 2017 12:48:26 +0530 From: Himanshu Jha To: Dan Carpenter Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, insafonov@gmail.com, linux-kernel@vger.kernel.org, hdegoede@redhat.com, Larry.Finger@lwfinger.net Subject: Re: [PATCH] staging: rtl8723bs: remove memset before memcpy Message-ID: <20170828071826.GA4451@himanshu-Vostro-3559> References: <1503864811-8226-1-git-send-email-himanshujha199640@gmail.com> <20170828061231.yalsogu62qskhter@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170828061231.yalsogu62qskhter@mwanda> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 825 Lines: 26 On Mon, Aug 28, 2017 at 09:19:06AM +0300, Dan Carpenter wrote: > On Mon, Aug 28, 2017 at 01:43:31AM +0530, Himanshu Jha wrote: > > calling memcpy immediately after memset with the same region of memory > > makes memset redundant. > > > > Build successfully. > > > > Thanks for the patch, it looks good. You don't need to say that it > builds successfully, because we already assume that's true. > > > Signed-off-by: Himanshu Jha > > --- > > Sometimes I put a comment here under the cut off line if I want people > to know that I haven't tested a patch. > > Anyway, don't resend the patch. It's fine as-is (unless Greg > complains) but it's just for future reference. Thanks for the feedback and i will keep that in mind for future patches. Himanshu Jha > > regards, > dan carpenter >