linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: PATCH v2 1/6] soc/fsl/qe: qe.c: drop useless static qualifier
@ 2019-05-09  2:28 Qiang Zhao
  0 siblings, 0 replies; only message in thread
From: Qiang Zhao @ 2019-05-09  2:28 UTC (permalink / raw)
  To: Rasmus Villemoes, devicetree, Leo Li
  Cc: linuxppc-dev, linux-arm-kernel, linux-kernel, Rob Herring,
	Scott Wood, Christophe Leroy, Mark Rutland, Rasmus Villemoes

On 2019/5/1 17:29, Rasmus Villemoes <rasmus.villemoes@prevas.dk> wrote:
> -----Original Message-----
> From: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
> Sent: 2019年5月1日 17:29
> To: devicetree@vger.kernel.org; Qiang Zhao <qiang.zhao@nxp.com>; Leo Li
> <leoyang.li@nxp.com>
> Cc: linuxppc-dev@lists.ozlabs.org; linux-arm-kernel@lists.infradead.org;
> linux-kernel@vger.kernel.org; Rob Herring <robh+dt@kernel.org>; Scott Wood
> <oss@buserror.net>; Christophe Leroy <christophe.leroy@c-s.fr>; Mark
> Rutland <mark.rutland@arm.com>; Rasmus Villemoes
> <Rasmus.Villemoes@prevas.se>
> Subject: [PATCH v2 1/6] soc/fsl/qe: qe.c: drop useless static qualifier
> 
> The local variable snum_init has no reason to have static storage duration.
> 
> Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
> Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>

Reviewed-by: Qiang Zhao <qiang.zhao@nxp.com>

> ---
>  drivers/soc/fsl/qe/qe.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/soc/fsl/qe/qe.c b/drivers/soc/fsl/qe/qe.c index
> 612d9c551be5..855373deb746 100644
> --- a/drivers/soc/fsl/qe/qe.c
> +++ b/drivers/soc/fsl/qe/qe.c
> @@ -306,7 +306,7 @@ static void qe_snums_init(void)
>                 0x28, 0x29, 0x38, 0x39, 0x48, 0x49, 0x58, 0x59,
>                 0x68, 0x69, 0x78, 0x79, 0x80, 0x81,
>         };
> -       static const u8 *snum_init;
> +       const u8 *snum_init;
> 
>         qe_num_of_snum = qe_get_num_of_snums();
> 
> --
> 2.20.1


Best Regards
Qiang Zhao

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-09  2:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-09  2:28 PATCH v2 1/6] soc/fsl/qe: qe.c: drop useless static qualifier Qiang Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).