Quoting Philipp Hahn (2026-03-10 11:49:15) > Prefer using IS_ERR_OR_NULL() over using IS_ERR() and a manual NULL > check. > > Change generated with coccinelle. > > To: Shuah Khan <[email protected]> > To: Kieran Bingham <[email protected]> > To: Mauro Carvalho Chehab <[email protected]> > Cc: [email protected] > Cc: [email protected] > Signed-off-by: Philipp Hahn <[email protected]> > --- > drivers/media/test-drivers/vimc/vimc-streamer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/test-drivers/vimc/vimc-streamer.c > b/drivers/media/test-drivers/vimc/vimc-streamer.c > index > 15d863f97cbf96b7ca7fbf3d7b6b6ec39fcc8ae3..da5aca50bcb4990c06f28e5a883eb398606991e9 > 100644 > --- a/drivers/media/test-drivers/vimc/vimc-streamer.c > +++ b/drivers/media/test-drivers/vimc/vimc-streamer.c > @@ -167,7 +167,7 @@ static int vimc_streamer_thread(void *data) > for (i = stream->pipe_size - 1; i >= 0; i--) { > frame = stream->ved_pipeline[i]->process_frame( > stream->ved_pipeline[i], frame); > - if (!frame || IS_ERR(frame)) > + if (IS_ERR_OR_NULL(frame))
Reviewed-by: Kieran Bingham <[email protected]> > break; > } > //wait for 60hz > > -- > 2.43.0 >
