mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
os/bluestore/KernelDevice: drop redundant assignment statements
The memset() call has already done it. Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
parent
e353d8e0b1
commit
c8123e50c1
@ -54,8 +54,6 @@ int KernelDevice::_lock()
|
||||
memset(&l, 0, sizeof(l));
|
||||
l.l_type = F_WRLCK;
|
||||
l.l_whence = SEEK_SET;
|
||||
l.l_start = 0;
|
||||
l.l_len = 0;
|
||||
int r = ::fcntl(fd_direct, F_SETLK, &l);
|
||||
if (r < 0)
|
||||
return -errno;
|
||||
|
Loading…
Reference in New Issue
Block a user