]> git.baikalelectronics.ru Git - kernel.git/commit
staging: android: ion: remove duplicate buffer field initializes
authorTodd Poynor <toddpoynor@google.com>
Sat, 21 Apr 2018 02:56:29 +0000 (19:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 12:51:37 +0000 (14:51 +0200)
commit9a316b3545f47b012c80326a1ccad5f4f90a056a
treec0b1722da3ce68c42808347e2b894d819788b226
parent17065c8c0154fbeb9d166371bc3571cc895b3c4d
staging: android: ion: remove duplicate buffer field initializes

As a result of various previous patches, ion_buffer_create() now
has two sets of identical statements for initializing two fields of
the buffer struct, next to each other.  Remove one set.

Move the initialization of these two fields together with the
statements that initialize the other two fields from the function
parameters, prior to the heap allocate() call, for consistency.

Signed-off-by: Todd Poynor <toddpoynor@google.com>
Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion.c