1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00

cleanup: suppress compiler warning

This commit is contained in:
Alasdair G Kergon 2013-07-23 13:32:47 +01:00
parent eb5a6a0d1a
commit 3670fe92ba

View File

@ -749,10 +749,10 @@ static int lvchange_writemostly(struct logical_volume *lv)
return_0;
if (tmp_str_len < 3 ||
(tmp_str[tmp_str_len - 2] != ':') &&
((tmp_str[tmp_str_len - 2] != ':') &&
((tmp_str[tmp_str_len - 1] != 't') ||
(tmp_str[tmp_str_len - 1] != 'y') ||
(tmp_str[tmp_str_len - 1] != 'n')))
(tmp_str[tmp_str_len - 1] != 'n'))))
/* Default to 'y' if no mode specified */
sprintf(pv_names[i], "%s:y", tmp_str);
else