[PATCH 2/5] fs: Fix sparse warning.
Marek Belisko
marek.belisko at open-nandra.com
Thu Nov 18 08:29:28 EST 2010
Patch fix following sparse warning:
fs/fs.c:757:28: warning: dubious: !x & y
Signed-off-by: Marek Belisko <marek.belisko at open-nandra.com>
---
fs/fs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/fs.c b/fs/fs.c
index 3b5f284..7d8dea7 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -754,7 +754,7 @@ int mount(const char *device, const char *fsname, const char *_path)
}
fsdev = xzalloc(sizeof(struct fs_device_d));
- if (!fs_drv->flags & FS_DRIVER_NO_DEV) {
+ if (!(fs_drv->flags & FS_DRIVER_NO_DEV)) {
fsdev->backingstore = strdup(device);
if (!device) {
printf("need a device for driver %s\n", fsname);
--
1.7.1
More information about the barebox
mailing list