Explorar o código

staging: vt6656: Merge three lines into one

This patch merges three lines into one, removing if branch

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tapasweni Pathak %!s(int64=11) %!d(string=hai) anos
pai
achega
f0cffbfe8c
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      drivers/staging/vt6656/firmware.c

+ 1 - 3
drivers/staging/vt6656/firmware.c

@@ -103,9 +103,7 @@ int vnt_firmware_branch_to_sram(struct vnt_private *priv)
 					0x0000,
 					0,
 					NULL);
-	if (status != STATUS_SUCCESS)
-		return false;
-	return true;
+	return status == STATUS_SUCCESS;
 }
 
 int vnt_check_firmware_version(struct vnt_private *priv)