platform: goldfish: pipe: Replace two code blocks with a function call
authorRoman Kiryanov <rkir@google.com>
Mon, 27 Aug 2018 18:23:06 +0000 (11:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2018 13:31:30 +0000 (15:31 +0200)
commit610a72b70733b6d5b7d3a1ee93f2e6daa2742ef3
tree6ed14e1fa92e0acd5cb0ee0e7fc4ade35a16a86a
parent2ed43e53e35907456389dc9d8733d2221e6ec0e7
platform: goldfish: pipe: Replace two code blocks with a function call

Two function calls look cleaner because the function introduces
takes case of all bit shifting and casting.

Signed-off-by: Roman Kiryanov <rkir@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/goldfish/goldfish_pipe.c