mei: mei_write: revamp function flow
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 1 Nov 2012 19:17:13 +0000 (21:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Nov 2012 19:31:17 +0000 (12:31 -0700)
commitb0d0cf77e72a9d233015f8f21e9dfc9d9b5d0711
tree646b3597480dff4b952899465f84c7ea5d0379f1
parent3321e738d6f0a82b2c19f9d5890f304dab1e5357
mei: mei_write: revamp function flow

Use goto statement for error handling instead of deeper if constructs
and rename label 'unlock_dev' to more appropriate 'err'

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/main.c