search for: 6d340cb

Displaying 1 result from an estimated 1 matches for "6d340cb".

2013 Sep 04
0
[PATCH] Btrfs-progs: fix compile warning in is_ssd()
...red with attribute warn_unused_result [-Wunused-result] blkid_devno_to_wholedisk(devno, wholedisk, sizeof(wholedisk), NULL); Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com> --- mkfs.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mkfs.c b/mkfs.c index 6d340cb..bcaca43 100644 --- a/mkfs.c +++ b/mkfs.c @@ -1209,6 +1209,7 @@ static int is_ssd(const char *file) dev_t devno; int fd; char rotational; + int ret; probe = blkid_new_probe_from_filename(file); if (!probe) @@ -1220,7 +1221,12 @@ static int is_ssd(const char *file) return 0; /* Ge...