Markus Armbruster 98f343395e usb: Use g_new() & friends where that makes obvious sense
g_new(T, n) is neater than g_malloc(sizeof(T) * n).  It's also safer,
for two reasons.  One, it catches multiplication overflowing size_t.
Two, it returns T * rather than void *, which lets the compiler catch
more type errors.

This commit only touches allocations with size arguments of the form
sizeof(T).  Same Coccinelle semantic patch as in commit b45c03f.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2015-11-06 15:42:38 +03:00
..
2015-04-30 16:05:48 +03:00
2014-06-02 16:29:00 +02:00
2014-04-22 12:40:57 +02:00
2015-05-08 13:01:06 +02:00
2015-05-08 13:01:06 +02:00
2015-05-08 13:01:07 +02:00
2015-07-27 14:12:18 +01:00
2015-05-08 13:01:07 +02:00
2015-05-08 13:01:07 +02:00
2015-11-03 11:55:51 +01:00
2015-11-03 11:56:23 +01:00