files: remove a redundant condition

master
Benno Schulenberg 2016-05-21 13:32:28 +02:00
parent e65352bc8a
commit f6fdeeb3af
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ int write_lockfile(const char *lockfilename, const char *origfilename, bool modi
* failed, this will return NULL. */ * failed, this will return NULL. */
filestream = fdopen(fd, "wb"); filestream = fdopen(fd, "wb");
if (fd < 0 || filestream == NULL) { if (filestream == NULL) {
statusline(MILD, _("Error writing lock file %s: %s"), lockfilename, statusline(MILD, _("Error writing lock file %s: %s"), lockfilename,
strerror(errno)); strerror(errno));
goto free_the_data; goto free_the_data;