On Tue, 7 Jan 2020, Maxime Ripard wrote:
Hi,
On Mon, Jan 06, 2020 at 05:00:52PM +0300, Wambui Karuga wrote:
Replace the use of IS_ERR and PTR_ZERO macros by returning the
PTR_ERR_OR_ZERO macro.
Changes suggested by coccinelle.
Signed-off-by: Wambui Karuga
Unfortunately, that patch came
Hi,
On Mon, Jan 06, 2020 at 05:00:52PM +0300, Wambui Karuga wrote:
> Replace the use of IS_ERR and PTR_ZERO macros by returning the
> PTR_ERR_OR_ZERO macro.
> Changes suggested by coccinelle.
>
> Signed-off-by: Wambui Karuga
Unfortunately, that patch came up a number of time and shouldn't have
b
Replace the use of IS_ERR and PTR_ZERO macros by returning the
PTR_ERR_OR_ZERO macro.
Changes suggested by coccinelle.
Signed-off-by: Wambui Karuga
---
drivers/gpu/drm/sun4i/sun4i_dotclock.c | 4 +---
drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c | 4 +---
drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
Signed-off-by: Himanshu Jha
---
drivers/gpu/drm/sun4i/sun4i_dotclock.c | 5 +
drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c | 5 +
drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c | 5 +
3 files changed, 3 insertions(+), 12 dele