staging: ks7010: clean memory allocation
authorTobin C. Harding <me@tobin.cc>
Thu, 27 Apr 2017 01:25:17 +0000 (11:25 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Apr 2017 09:45:49 +0000 (11:45 +0200)
commit95e72fba95fd1d9b9ef3ab080aafe1076f42a10a
treecb15d61007b30da14677c5107153f2c7cb8fd120
parent8215fc607f50c516ceeb47fac046c3e4ea7acc4e
staging: ks7010: clean memory allocation

Memory allocation code contains unneeded debug statements, failed
kmalloc() calls typically do not require a debug message. Introduction
of a local 'size' variable allows kmalloc() call to be marginally
cleaner, still uses magic numbers but these require a more substantial
fix. Moving the magic numbers onto a single line opens the way for
further refactoring.

Clean memory allocation code, remove debug statements.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c