From: Junio C Hamano Date: Wed, 27 Jan 2010 20:22:37 +0000 (-0800) Subject: transport_get(): drop unnecessary check for !remote X-Git-Tag: v1.7.0-rc1~27 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cb21d8f032b3784ffa7b340abbafb8c4b122d2cc;p=git.git transport_get(): drop unnecessary check for !remote At the beginning of the function we make sure remote is not NULL, and the remainder of the funciton already depends on it. Signed-off-by: Junio C Hamano --- diff --git a/transport.c b/transport.c index 87581b85a..3846aacb4 100644 --- a/transport.c +++ b/transport.c @@ -921,7 +921,7 @@ struct transport *transport_get(struct remote *remote, const char *url) ret->remote = remote; helper = remote->foreign_vcs; - if (!url && remote && remote->url) + if (!url && remote->url) url = remote->url[0]; ret->url = url;