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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to