From: Wayne Davison Date: Sun, 31 Jul 2005 23:19:42 +0000 (+0000) Subject: There is no longer a need to check file->link_u.links at the start X-Git-Tag: v2.6.7pre1~449 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cd3db27b618f8d287cf63637fb632bbb431533f;p=thirdparty%2Frsync.git There is no longer a need to check file->link_u.links at the start of hard_link_check() (because the caller has already checked it). --- diff --git a/hlink.c b/hlink.c index 5a4077db..5c4cec04 100644 --- a/hlink.c +++ b/hlink.c @@ -173,8 +173,6 @@ int hard_link_check(struct file_struct *file, int ndx, char *fname, { #ifdef SUPPORT_HARD_LINKS int head; - if (!file->link_u.links) - return 0; if (skip && !(file->flags & FLAG_HLINK_EOL)) head = hlink_list[file->F_HLINDEX] = file->F_NEXT; else