[RFC PATCH 0/1] videobuf2-core: Change vb2_queue_init return type to void

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

This is a simple patch that replaces vb2_queue_init return type.
Currently vb2_queue_init is returning an integer, but it always return 0
since it's a very simple function and doesn't take any actions that can fail.

For this reason some drivers (e.g. pwc) don't bother to check the return value,
while others do.

This patch simply change this return type to void;
it's only an RFC and, of course, it won't compile as it is.

It's arguable that one may want to keep returning an integer, just in
case we consider
returning something other than 0 in the future.
On the other hand, fixing this to void will help simplify lots of drivers.

If you think the change is good, I'll prepare a nice patchset fixing
the drivers aswell.

Thanks,
Ezequiel.
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux