Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: If524dfd179eb01d40855e5e6570a488e759550c7
return true;
ffd = open(ff_path, O_RDWR);
- if (ffd <= 0)
+ if (ffd < 0)
return false;
*fd = ffd;
_I("First element: open ff driver");
/* open ff driver */
ff_fd = open(ff_path, O_RDWR);
- if (!ff_fd) {
+ if (ff_fd < 0) {
_E("Failed to open %s : %d", ff_path, errno);
return -errno;
}
return true;
ffd = open(ff_path, O_RDWR);
- if (ffd <= 0)
+ if (ffd < 0)
return false;
*fd = ffd;
_I("First element: open ff driver");
/* open ff driver */
ff_fd = open(ff_path, O_RDWR);
- if (!ff_fd) {
+ if (ff_fd < 0) {
_E("Failed to open %s : %d", ff_path, errno);
return -errno;
}