Re: [PATCH] drm/ingenic: Silence uninitialized-variable warning

2020-07-20 Thread Paul Cercueil
Hi Sam, Le dim. 19 juil. 2020 à 12:23, Sam Ravnborg a écrit : Hi Paul. On Sun, Jul 19, 2020 at 11:38:34AM +0200, Paul Cercueil wrote: Silence compiler warning about used but uninitialized 'ipu_state' variable. In practice, the variable would never be used when uninitialized, but the compi

[PATCH] drm/ingenic: Silence uninitialized-variable warning

2020-07-20 Thread Paul Cercueil
Silence compiler warning about used but uninitialized 'ipu_state' variable. In practice, the variable would never be used when uninitialized, but the compiler cannot know that 'priv->ipu_plane' will always be NULL if CONFIG_INGENIC_IPU is disabled. Silence the warning by initializing the value to

Re: [PATCH] drm/ingenic: Silence uninitialized-variable warning

2020-07-19 Thread Sam Ravnborg
Hi Paul. On Sun, Jul 19, 2020 at 11:38:34AM +0200, Paul Cercueil wrote: > Silence compiler warning about used but uninitialized 'ipu_state' > variable. In practice, the variable would never be used when > uninitialized, but the compiler cannot know that 'priv->ipu_plane' will > always be NULL if C