Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp987783rwi; Wed, 2 Nov 2022 22:34:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5BH05DzzWkrWq+x0DTSsAzdi3UHMdW2WlZNMOPdS81eZqs2AAtdntQ0N103oAkfBRQZjS3 X-Received: by 2002:a17:907:86a8:b0:7ad:988e:a93 with SMTP id qa40-20020a17090786a800b007ad988e0a93mr28673945ejc.704.1667453677368; Wed, 02 Nov 2022 22:34:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667453677; cv=none; d=google.com; s=arc-20160816; b=XBpXU08/RfWIKURC/E11EUWnhRdQhcNNPbHltEgZINT76t0sB8OkOI55oQudvY5Sww Ug6VMjjQOCrYfAJNIwZv61lMMjwgUHzFU8Fyq2SIPWG2MPaexiFI914HaSpQXT/N76UX QlNYTQcdzfnkJMfYkmpk3zwz6q5Lbj2UFn/G5XGUtYbowtDbp1tzo1UhAjWUGnamrkWK hkCdot/eldNgkIrCQTtiRviNtxFJ4cb5ZctEF92L/vm/yCmwHeYjggd8dwuy1oLaWMLz 7gVt2jl3sC8gzRkashXHu6kNkrFxLeP+/cPf1tnXA+vkSWmXS2cUcY1hp8pgoIZFsWdp 1/sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Hot+u4JVgW35tvVbYWqCLromGihYaw8r3WqwnETp9Go=; b=vX22OJz4SUmfttiJ/rA/trLYI8l11Gs3Iv0qp+HZWMK2FYNbo24ZMRGlSjQOPZ/7bM cdWePI3J6anvtctZ+5kEyIl8UqXJQx7pSBItuabRcQyVzhEFK+4YDohVNKdc5EV8OkeX Js2uqQU3x76XWuMdHnpUADqjNNGl3VTId6x4nNf4/R+ZwtbLoPADXTSeHC8vG7rbjPVP z5e8C4M3aFzkTUp0FKRKTe1MZyrX8qJZbSqqGRKW6z0Ss7/9H/KMBiOJc+FqFx1QLvvf 42SCGiGm3PX2cYjityOAz6MPo2sWz80ujk534o9dCX6PT9q3A4VXpSc+l4tl9WePQzud an6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=iBJlL+mW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g11-20020a170906394b00b007ada2efa6b7si40998eje.567.2022.11.02.22.34.14; Wed, 02 Nov 2022 22:34:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=iBJlL+mW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230261AbiKCF0P (ORCPT + 98 others); Thu, 3 Nov 2022 01:26:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbiKCF0J (ORCPT ); Thu, 3 Nov 2022 01:26:09 -0400 Received: from msg-4.mailo.com (msg-4.mailo.com [213.182.54.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F27417583 for ; Wed, 2 Nov 2022 22:26:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1667453154; bh=FufVo+HFMo3MVhvPeLvfq/RyBj3cNiGx245dUoTqmJU=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=iBJlL+mWHsrh7x0N3fKFFXMMBUXy3LhUUEQZyMU5qJyUejZsVMc7B2plh/3MTU6wr RYgzTYyKeFMNqsmkiKBoy0VCYcoQ4PU0+WHOFTuuJ/xAhaj9E6/l0cTsI+JeupeRoW aof5rObKL/8Uuhq3I9/hUlgoU5qMlPI/bXGrT+UU= Received: by b-6.in.mailobj.net [192.168.90.16] with ESMTP via [213.182.55.206] Thu, 3 Nov 2022 06:25:53 +0100 (CET) X-EA-Auth: sT/AI6qkYYmy785Y8+YqN/cDQZl5Q7Pej6Ql4n93P4imGzzGbUN3YjFwvbY6p7yflJ+0rjGD1TILhqpBL7JIsLea1C8jlblu Date: Thu, 3 Nov 2022 10:55:47 +0530 From: Deepak R Varma To: Dan Carpenter Cc: Pavel Skripkin , outreachy@lists.linux.dev, Larry Finger , Phillip Potter , Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: r8188eu: Use flexible-array for one length array member Message-ID: References: <642519a2-664d-d837-983a-1d5bbc72a25e@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 03, 2022 at 08:22:14AM +0300, Dan Carpenter wrote: > On Thu, Nov 03, 2022 at 12:49:38AM +0530, Deepak R Varma wrote: > > I am wondering if ijk_matrix_regs_set (or IQKMatrixRegSetting) is a one element > > array, why is it declared as a two dimensional array? Can this be a simple one > > dimensional array instead? Is this the cleanup you are referring to when you say > > "code is messy and should be cleaned up"? > > Yes. You have interpreted that correctly. Thank you for the confirmation. This will be an interesting correction. I will review and submit a patch shortly. Thank you, ./drv > > regards, > dan carpenter > >