diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-24 20:22:29 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-24 20:22:29 (GMT) |
commit | 497a2e02a1d159269464b531aa6a3e8a60138e25 (patch) | |
tree | 60e159b8783ac803826dcb2eb4251c81ab5a6808 | |
parent | ca7ea39361aafc769cea5d68e021fccf0dbb714b (diff) | |
download | linux-497a2e02a1d159269464b531aa6a3e8a60138e25.tar.xz |
staging: gdm724x: remove unneeded TO_HOST_SUCCESS enum
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>
-rw-r--r-- | drivers/staging/gdm724x/gdm_tty.c | 2 | ||||
-rw-r--r-- | drivers/staging/gdm724x/gdm_tty.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x/gdm_tty.c index 64904e01..a19c14f 100644 --- a/drivers/staging/gdm724x/gdm_tty.c +++ b/drivers/staging/gdm724x/gdm_tty.c @@ -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) diff --git a/drivers/staging/gdm724x/gdm_tty.h b/drivers/staging/gdm724x/gdm_tty.h index bfe654e..046744b 100644 --- a/drivers/staging/gdm724x/gdm_tty.h +++ b/drivers/staging/gdm724x/gdm_tty.h @@ -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, |