From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA890C433F5 for ; Wed, 1 Jun 2022 10:18:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351807AbiFAKSr (ORCPT ); Wed, 1 Jun 2022 06:18:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243633AbiFAKSk (ORCPT ); Wed, 1 Jun 2022 06:18:40 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AA566A02E for ; Wed, 1 Jun 2022 03:18:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 01794B81910 for ; Wed, 1 Jun 2022 10:18:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08C35C34119; Wed, 1 Jun 2022 10:18:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654078716; bh=LQC0N6hCla1p6RvYrBTedcFGJaeX6b92BTEoRrjN5CQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wUB+n4zc2GtSTXVyRhQLgU6dnWEqXr9r4dqyZJk80YJHl5j5f6Wl6G+vF0bQI1r9/ BM1OulRtMkDS1XY0xXgLp3h619Y7deZDFbcuH42mvFrn5sRU2ID891Kl5JJyLATGrr GZP2QBOb8AGtPyWIWqhz9nxcGaHU/5Y9tdzbQ6mA= Date: Wed, 1 Jun 2022 12:18:28 +0200 From: Greg KH To: Haowen Bai Cc: larry.finger@lwfinger.net, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, phil@philpotter.co.uk Subject: Re: [PATCH V2] staging: r8188eu: Drop redundant memset overwritten by memcpy Message-ID: References: <007ab767-b124-26fd-20f4-29fea899a573@lwfinger.net> <1654077926-9687-1-git-send-email-baihaowen@meizu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1654077926-9687-1-git-send-email-baihaowen@meizu.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 01, 2022 at 06:05:26PM +0800, Haowen Bai wrote: > The region set by the call to memset is immediately overwritten by the > subsequent call to memcpy. So we drop redundant memset. > > Signed-off-by: Haowen Bai > --- > V1->V2: change title for unique subjects. That's not really unique, why is this just not 1 patch with both changes in it as you are doing the same thing to the same driver source, just in different locations in the files. Please merge together. thanks, greg k-h