> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf > Of Philipp Hahn > Sent: Tuesday, March 10, 2026 12:49 PM > To: [email protected]; [email protected]; > [email protected]; [email protected]; [email protected]; dm- > [email protected]; [email protected]; > [email protected]; [email protected]; intel-wired- > [email protected]; [email protected]; [email protected]; > [email protected]; [email protected]; > [email protected]; [email protected]; linux- > [email protected]; [email protected]; linux- > [email protected]; [email protected]; linux- > [email protected]; [email protected]; linux- > [email protected]; [email protected]; linux- > [email protected]; [email protected]; linux- > [email protected]; [email protected]; [email protected]; > [email protected]; [email protected]; linux- > [email protected]; [email protected]; linux- > [email protected]; [email protected]; linux- > [email protected]; [email protected]; linux- > [email protected]; [email protected]; linux-security- > [email protected]; [email protected]; linux- > [email protected]; [email protected]; > [email protected]; [email protected]; linux- > [email protected]; [email protected]; > [email protected]; [email protected]; sched- > [email protected]; [email protected]; tipc- > [email protected]; [email protected]; Philipp Hahn > <[email protected]> > Cc: Shuah Khan <[email protected]>; Kieran Bingham > <[email protected]>; Mauro Carvalho Chehab > <[email protected]> > Subject: [Intel-wired-lan] [PATCH 49/61] media: Prefer IS_ERR_OR_NULL > over manual NULL check > > 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..da5aca50bcb4990c06f28e5a883e > b398606991e9 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)) > break; > } > //wait for 60hz > > -- > 2.43.0
Reviewed-by: Aleksandr Loktionov <[email protected]>
