]> git.baikalelectronics.ru Git - kernel.git/commit
isdn/gigaset: Use kzalloc instead of open-coded field zeroing
authorKees Cook <keescook@chromium.org>
Tue, 17 Oct 2017 00:29:15 +0000 (17:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Oct 2017 11:39:39 +0000 (12:39 +0100)
commitb634d601a0fdb146247a273de57c22a33e960c29
tree90a8094784f0fdd53cad7a093bf9296a7b34cd51
parent5148b5e4754ccaf777d3337f688b9c0d9da9ac70
isdn/gigaset: Use kzalloc instead of open-coded field zeroing

This replaces a kmalloc followed by a bunch of per-field zeroing with a
single kzalloc call, reducing the lines of code.

Cc: Paul Bolle <pebolle@tiscali.nl>
Cc: Karsten Keil <isdn@linux-pingi.de>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Johan Hovold <johan@kernel.org>
Cc: gigaset307x-common@lists.sourceforge.net
Cc: netdev@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/gigaset/bas-gigaset.c