mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 17:44:10 +00:00
fs: Fix compiler warnings for feature chromeos
Compiler warnings that only occur when compiled with feature chromeos are fixed. Fixed=b:235772995 TEST=none Change-Id: Ie1f120798d0812e7e54984292ccccdac2477a030 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3731294 Commit-Queue: Zihan Chen <zihanchen@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Dennis Kempin <denniskempin@google.com>
This commit is contained in:
parent
517bfb7acf
commit
0423074861
1 changed files with 3 additions and 5 deletions
|
@ -1045,7 +1045,7 @@ impl PassthroughFs {
|
|||
let fd = unsafe { dbus::arg::OwnedFd::new(base::clone_descriptor(&*data)?) };
|
||||
match proxy.set_media_rwdata_file_project_id(fd, proto.write_to_bytes().unwrap()) {
|
||||
Ok(r) => {
|
||||
let r = protobuf::parse_from_bytes::<SetMediaRWDataFileProjectIdReply>(&r)
|
||||
let r = SetMediaRWDataFileProjectIdReply::parse_from_bytes(&r)
|
||||
.map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))?;
|
||||
if !r.success {
|
||||
return Ok(IoctlReply::Done(Err(io::Error::from_raw_os_error(
|
||||
|
@ -1140,10 +1140,8 @@ impl PassthroughFs {
|
|||
proto.write_to_bytes().unwrap(),
|
||||
) {
|
||||
Ok(r) => {
|
||||
let r = protobuf::parse_from_bytes::<
|
||||
SetMediaRWDataFileProjectInheritanceFlagReply,
|
||||
>(&r)
|
||||
.map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))?;
|
||||
let r = SetMediaRWDataFileProjectInheritanceFlagReply::parse_from_bytes(&r)
|
||||
.map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))?;
|
||||
if !r.success {
|
||||
return Ok(IoctlReply::Done(Err(io::Error::from_raw_os_error(
|
||||
r.error,
|
||||
|
|
Loading…
Reference in a new issue