From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2EF951A1DE9 for ; Thu, 27 Oct 2016 00:30:35 -0700 (PDT) Received: by mail-oi0-x231.google.com with SMTP id n202so32890829oig.3 for ; Thu, 27 Oct 2016 00:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bSscyI1LuNxK7FRDGTI5GiLn0Y1r7I6bzcHGW2ajgpc=; b=ImKgAuO9C5Or1KU0S4zC35ugz5qxwMYc1CCJMLRlKnih/pfChHQ/B9oi8JM6qf/ei3 2Is26YLBRzc+kxjloPMMQEwdxW9nkYkPRWZ+Q1QmySisW6xbOm6JcXHqpp1pLjuP7NWR UO5MXGWuULG2Af9ovsNRS0PU8vr5ZD3Ibu4yw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bSscyI1LuNxK7FRDGTI5GiLn0Y1r7I6bzcHGW2ajgpc=; b=N185sSRv/UqmAOPKFLJCUMLjhK/t3JLCWEaMNnPzZ8v4dlTpp8M2KCnaTgODq8wSeD 4JyGiPNvASn+h0fFkYsi1JMd9FjGGrqFQ9Qp7v8U9qFyCS3EekeVZ+PUhmxw6V69XI/H aW+kLM+f1rHXI2HjQG+2+XwkaVPqDFTfdRuDY+K2FWUXGmUvoq8eRXFjQ8mscYGirto7 Mw8j8yuLICXE3h6iP/u1rKqA4LYcrBuuyvSf6ZNyj/96x+Cao9j7um3ouZfGkde9TD8j gfKo8urb3XbZAw35Zipe1uTZRlVV+6IpXw+2u3g0fUj6aqPx9Wyf/OQ+RXWiI3K5uPpu 2I5Q== X-Gm-Message-State: ABUngveHZV/kFjQRColvKHAEb7BUsAyLfY9UgOLITT3BRiHXWxywn98X8T9Td4pVMK4bo+FV1Q0glaCuAZKOdPwq X-Received: by 10.107.28.148 with SMTP id c142mr5260875ioc.45.1477553434227; Thu, 27 Oct 2016 00:30:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.5.139 with HTTP; Thu, 27 Oct 2016 00:30:33 -0700 (PDT) In-Reply-To: <20161026190504.9888-11-lersek@redhat.com> References: <20161026190504.9888-1-lersek@redhat.com> <20161026190504.9888-11-lersek@redhat.com> From: Ard Biesheuvel Date: Thu, 27 Oct 2016 08:30:33 +0100 Message-ID: To: Laszlo Ersek Cc: edk2-devel-01 Subject: Re: [PATCH 10/47] ArmVirtPkg/NorFlashQemuLib: rebase to ARRAY_SIZE() X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2016 07:30:35 -0000 Content-Type: text/plain; charset=UTF-8 On 26 October 2016 at 20:04, Laszlo Ersek wrote: > Cc: Ard Biesheuvel > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Laszlo Ersek Reviewed-by: Ard Biesheuvel > --- > ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c b/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c > index 7f346077e6b5..d63a2d989f69 100644 > --- a/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c > +++ b/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c > @@ -46,6 +46,6 @@ NorFlashPlatformGetDevices ( > ) > { > *NorFlashDescriptions = mNorFlashDevices; > - *Count = sizeof (mNorFlashDevices) / sizeof (mNorFlashDevices[0]); > + *Count = ARRAY_SIZE (mNorFlashDevices); > return EFI_SUCCESS; > } > -- > 2.9.2 > >