Fix bugprone-posix-return warnings

Test: WITH_TIDY=1 make
Bug: 154629561
Signed-off-by: sekaiacg <sekaiacg@gmail.com>
Change-Id: I523cb95ed7beb330487d572c5214d0238a4e5b8b
(cherry picked from commit a1748387a6226f5cb7f95ca99043ac68d050ea46)
diff --git a/mtp/ffs/MtpFfsHandle.cpp b/mtp/ffs/MtpFfsHandle.cpp
index 19c28b3..5710aec 100644
--- a/mtp/ffs/MtpFfsHandle.cpp
+++ b/mtp/ffs/MtpFfsHandle.cpp
@@ -113,11 +113,11 @@
 void MtpFfsHandle::advise(int fd) {
 	for (unsigned i = 0; i < NUM_IO_BUFS; i++) {
 		if (posix_madvise(mIobuf[i].bufs.data(), MAX_FILE_CHUNK_SIZE,
-				POSIX_MADV_SEQUENTIAL | POSIX_MADV_WILLNEED) < 0)
+				POSIX_MADV_SEQUENTIAL | POSIX_MADV_WILLNEED) != 0)
 			MTPE("Failed to madvise\n");
 	}
 	if (posix_fadvise(fd, 0, 0,
-				POSIX_FADV_SEQUENTIAL | POSIX_FADV_NOREUSE | POSIX_FADV_WILLNEED) < 0)
+				POSIX_FADV_SEQUENTIAL | POSIX_FADV_NOREUSE | POSIX_FADV_WILLNEED) != 0)
 		MTPE("Failed to fadvise\n");
 }