vmw_balloon: merge send_lock and send_unlock path
authorNadav Amit <namit@vmware.com>
Thu, 20 Sep 2018 17:30:09 +0000 (10:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 18:11:42 +0000 (20:11 +0200)
commit4c9a7d6a771d6e9038049a49e26b350a6ee4ffd2
tree4be694f29e73f8abb5a995b04952f538db882275
parent681311848c8fea6a3025296d88f3876920d577a0
vmw_balloon: merge send_lock and send_unlock path

The lock and unlock code paths are very similar, so avoid the duplicate
code by merging them together.

Reviewed-by: Xavier Deguillard <xdeguillard@vmware.com>
Signed-off-by: Nadav Amit <namit@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/vmw_balloon.c