udc interface: remove unused pointer

Change-Id: I55115be56f55ba94e520525293748fb2fcf34a38
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
gadgetd: indicate failure on unknown command line option

Instead of returning zero exit code when unknown option is passed,
exit with non-zero exit code.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Krzysztof Opasiak <k.opasiak@samsung.com>
gadgetd: scrap return value of parse_cmdline function

parse_cmdline function always returns zero.  Indeed the caller never
uses its return value.  Just drop it.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Krzysztof Opasiak <k.opasiak@samsung.com>
gadgetd: use printf(…) instead of fprintf(stdout, …)

Using printf instead of fprintf with stdout saves one line and makes
the code more concise.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Krzysztof Opasiak <k.opasiak@samsung.com>