lock_ref_sha1_basic(): inline constant

`lflags` is set a single time then never changed, so just inline it. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael Haggerty committed Jan 6, 2017 at 17:22 UTC e5007a6820e509c2b8611874dc758e4cfe9fabec
1 file changed +1 -2
refs/files-backend.c
+1 -2
@@ -2000,7 +2000,6 @@ static struct ref_lock *lock_ref_sha1_basic(struct files_ref_store *refs,
2000 struct strbuf ref_file = STRBUF_INIT;
2001 struct ref_lock *lock;
2002 int last_errno = 0;
2003 - int lflags = LOCK_NO_DEREF;
2003 int mustexist = (old_sha1 && !is_null_sha1(old_sha1));
2004 int resolve_flags = RESOLVE_REF_NO_RECURSE;
2005 int attempts_remaining = 3;
@@ -2083,7 +2082,7 @@ static struct ref_lock *lock_ref_sha1_basic(struct files_ref_store *refs,
2082 goto error_return;
2083 }
2084
2086 - if (hold_lock_file_for_update(lock->lk, ref_file.buf, lflags) < 0) {
2085 + if (hold_lock_file_for_update(lock->lk, ref_file.buf, LOCK_NO_DEREF) < 0) {
2086 last_errno = errno;
2087 if (errno == ENOENT && --attempts_remaining > 0)
2088 /*