staging: gdm724x: remove unneeded TO_HOST_SUCCESS enum
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jul 2013 20:22:29 +0000 (13:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jul 2013 20:22:29 +0000 (13:22 -0700)
0 is always success in the kernel, just use that.

Cc: Won Kang <wonkang@gctsemi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm724x/gdm_tty.c
drivers/staging/gdm724x/gdm_tty.h

index 64904e012dc87f33cd927ce95bb678734707a2b4..a19c14ffe6a94ef2d5983e818ea121acaa94e435 100644 (file)
@@ -155,7 +155,7 @@ complete_routine:
        if (complete == RECV_PACKET_PROCESS_COMPLETE)
                gdm_tty_recv(tty_str, gdm_tty_recv_complete);
 
-       return TO_HOST_SUCCESS;
+       return 0;
 }
 
 static void gdm_tty_send_complete(void *arg)
index bfe654eb378b0a9a60351b6a3618e19079eba425..046744b5adae1d712329a05ba3966357254d3b6f 100644 (file)
@@ -24,7 +24,6 @@
 #define MAX_ISSUE_NUM 3
 
 enum TO_HOST_RESULT {
-       TO_HOST_SUCCESS = 0,
        TO_HOST_BUFFER_REQUEST_FAIL = 1,
        TO_HOST_PORT_CLOSE = 2,
        TO_HOST_INVALID_PACKET = 3,