From b8fe56d837b68534b400788aa44b40d4734c7158 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 10 Aug 2011 14:19:33 -0700 Subject: [PATCH] Remove unnecessary casts --- src/uv-unix.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/uv-unix.c b/src/uv-unix.c index 6fa51e72..e64c280d 100644 --- a/src/uv-unix.c +++ b/src/uv-unix.c @@ -865,10 +865,10 @@ int uv_shutdown(uv_shutdown_t* req, uv_stream_t* stream, uv_shutdown_cb cb) { "uv_shutdown (unix) only supports uv_handle_t right now"); assert(stream->fd >= 0); - if (!(((uv_handle_t*)stream)->flags & UV_WRITABLE) || - ((uv_handle_t*)stream)->flags & UV_SHUT || - ((uv_handle_t*)stream)->flags & UV_CLOSED || - ((uv_handle_t*)stream)->flags & UV_CLOSING) { + if (!(stream->flags & UV_WRITABLE) || + stream->flags & UV_SHUT || + stream->flags & UV_CLOSED || + stream->flags & UV_CLOSING) { uv_err_new((uv_handle_t*)stream, EINVAL); return -1; }