1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

tdb: Fix Coverity ID 2192: NO_EFFECT

(ret < 0) can never be true
This commit is contained in:
Volker Lendecke 2011-03-27 21:43:53 +02:00
parent 261d6b0e9b
commit 25397de589

View File

@ -993,7 +993,7 @@ _PUBLIC_ int tdb_repack(struct tdb_context *tdb)
bool tdb_write_all(int fd, const void *buf, size_t count)
{
while (count) {
size_t ret;
ssize_t ret;
ret = write(fd, buf, count);
if (ret < 0)
return false;