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:
xie xingguo 2017-01-10 15:50:23 +08:00
parent e353d8e0b1
commit c8123e50c1

View File

@ -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;