diff options
author | drh <drh@noemail.net> | 2012-02-11 18:51:34 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2012-02-11 18:51:34 +0000 |
commit | c96d1e79a80c115b5a0c2238ef332c9dcfd354d5 (patch) | |
tree | 3429fd0fc3d392cd2a713601771954f54faf6219 /src/os_unix.c | |
parent | 96d7b510e9aeb26a8655d920f3e50926c5922bf0 (diff) | |
download | sqlite-c96d1e79a80c115b5a0c2238ef332c9dcfd354d5.tar.gz sqlite-c96d1e79a80c115b5a0c2238ef332c9dcfd354d5.zip |
Remove a redundant test from the shared-memory logic in os_unix.c.
FossilOrigin-Name: 31142ca795005bf664f34000591e6572c72652f2
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 5fad7aa2c..b717a08d7 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -3901,10 +3901,8 @@ static int unixOpenSharedMemory(unixFile *pDbFd){ } pShmNode->h = robust_open(zShmFilename, openFlags, (sStat.st_mode&0777)); if( pShmNode->h<0 ){ - if( pShmNode->h<0 ){ - rc = unixLogError(SQLITE_CANTOPEN_BKPT, "open", zShmFilename); - goto shm_open_err; - } + rc = unixLogError(SQLITE_CANTOPEN_BKPT, "open", zShmFilename); + goto shm_open_err; } /* Check to see if another process is holding the dead-man switch. |