public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* Any reason why media_entity_pads_init() isn't void?
@ 2016-03-14  8:25 Hans Verkuil
  2016-03-14 10:24 ` Mauro Carvalho Chehab
  2016-03-14 10:36 ` Sakari Ailus
  0 siblings, 2 replies; 8+ messages in thread
From: Hans Verkuil @ 2016-03-14  8:25 UTC (permalink / raw)
  To: Linux Media Mailing List, Laurent Pinchart, Mauro Carvalho Chehab

I was fixing a sparse warning in media_entity_pads_init() and I noticed that that
function always returns 0. Any reason why this can't be changed to a void function?

That return value is checked a zillion times in the media code. By making it void
it should simplify code all over.

See e.g. uvc_mc_init_entity in drivers/media/usb/uvc/uvc_entity.c: that whole
function can become a void function itself.

Regards,

	Hans

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-03-14 18:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-14  8:25 Any reason why media_entity_pads_init() isn't void? Hans Verkuil
2016-03-14 10:24 ` Mauro Carvalho Chehab
2016-03-14 10:36 ` Sakari Ailus
2016-03-14 11:27   ` Mauro Carvalho Chehab
2016-03-14 11:43     ` Sakari Ailus
2016-03-14 11:52       ` Mauro Carvalho Chehab
2016-03-14 13:05         ` Mauro Carvalho Chehab
2016-03-14 18:16           ` Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox