summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-01-27 12:22:37 -0800
committerJunio C Hamano <gitster@pobox.com>2010-01-27 12:22:37 -0800
commitcb21d8f032b3784ffa7b340abbafb8c4b122d2cc (patch)
tree0bc7a3f15a95372c7aa421d6c25152900b68dd8c /transport.c
parent4da504608ea94fbcac65eb287d8d5791bddefd88 (diff)
downloadgit-cb21d8f032b3784ffa7b340abbafb8c4b122d2cc.tar.gz
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 <gitster@pobox.com>
Diffstat (limited to 'transport.c')
-rw-r--r--transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transport.c b/transport.c
index 87581b85a1..3846aacb47 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;