Arnd Bergmann
67893f12e5
gfs2: avoid uninitialized variable warning
...
We get a bogus warning about a potential uninitialized variable
use in gfs2, because the compiler does not figure out that we
never use the leaf number if get_leaf_nr() returns an error:
fs/gfs2/dir.c: In function 'get_first_leaf':
fs/gfs2/dir.c:802:9: warning: 'leaf_no' may be used uninitialized in this function [-Wmaybe-uninitialized]
fs/gfs2/dir.c: In function 'dir_split_leaf':
fs/gfs2/dir.c:1021:8: warning: 'leaf_no' may be used uninitialized in this function [-Wmaybe-uninitialized]
Changing the 'if (!error)' to 'if (!IS_ERR_VALUE(error))' is
sufficient to let gcc understand that this is exactly the same
condition as in IS_ERR() so it can optimize the code path enough
to understand it.
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Signed-off-by: Bob Peterson <rpeterso@redhat.com >
2016-03-15 10:46:11 -04:00
..
2016-01-12 17:11:47 -08:00
2015-12-06 21:17:16 -05:00
2016-01-12 17:11:47 -08:00
2016-01-12 17:11:47 -08:00
2015-12-30 13:01:03 -05:00
2015-12-08 22:41:36 -05:00
2016-01-12 17:11:47 -08:00
2016-01-04 10:26:58 -05:00
2016-01-11 13:32:10 -08:00
2016-01-12 16:30:34 -08:00
2015-12-30 13:01:03 -05:00
2016-01-12 18:15:34 -08:00
2015-12-08 22:41:36 -05:00
2015-11-11 02:04:44 -05:00
2016-01-04 10:26:58 -05:00
2016-01-12 17:11:47 -08:00
2015-12-08 22:41:36 -05:00
2016-01-11 13:13:23 -08:00
2016-01-12 17:11:47 -08:00
2016-01-12 17:11:47 -08:00
2016-01-12 17:11:47 -08:00
2015-11-20 16:17:32 -08:00
2015-12-08 22:41:36 -05:00
2015-11-11 02:11:02 -05:00
2016-01-11 13:13:23 -08:00
2016-03-15 10:46:11 -04:00
2016-01-04 10:29:34 -05:00
2016-01-11 13:32:10 -08:00
2016-01-12 13:27:18 -08:00
2016-01-12 17:11:47 -08:00
2015-12-08 22:41:36 -05:00
2015-12-08 22:41:36 -05:00
2016-01-06 13:03:18 -05:00
2016-01-11 13:32:10 -08:00
2016-01-12 17:11:47 -08:00
2016-01-12 18:57:02 -08:00
2015-11-11 20:11:28 -08:00
2016-01-12 17:11:47 -08:00
2016-01-12 17:11:47 -08:00
2015-12-30 13:01:03 -05:00
2016-01-12 16:30:34 -08:00
2016-01-12 17:11:47 -08:00
2016-01-12 17:11:47 -08:00
2015-11-05 19:34:48 -08:00
2015-11-06 17:50:42 -08:00
2016-01-11 13:32:10 -08:00
2015-12-30 13:01:03 -05:00
2016-01-12 17:11:47 -08:00
2015-11-02 13:41:52 -08:00
2015-12-08 22:41:36 -05:00
2015-12-08 22:41:36 -05:00
2015-09-05 20:34:28 -07:00
2015-12-08 22:41:36 -05:00
2016-01-12 17:11:47 -08:00
2015-12-08 22:41:36 -05:00
2016-01-12 17:11:47 -08:00
2015-11-13 21:53:18 -08:00
2015-12-30 13:01:03 -05:00
2015-11-04 22:13:45 -05:00
2016-01-12 18:20:20 -08:00
2015-12-08 22:41:36 -05:00
2015-12-08 22:41:36 -05:00
2016-01-12 17:11:47 -08:00
2015-09-04 16:54:41 -07:00
2015-12-06 21:17:14 -05:00
2015-11-10 12:07:22 -08:00
2015-11-11 09:45:24 -08:00
2016-01-06 12:42:11 -05:00
2016-01-06 13:03:18 -05:00
2016-01-12 17:11:47 -08:00
2016-01-04 10:28:32 -05:00
2015-12-06 21:17:17 -05:00
2015-11-16 23:54:45 -08:00
2016-01-12 17:11:47 -08:00
2015-12-08 15:02:42 -05:00
2016-01-04 10:28:40 -05:00
2016-01-09 02:55:37 -05:00
2015-12-06 21:17:11 -05:00
2015-11-11 02:18:27 -05:00
2016-01-12 15:46:17 -08:00
2016-01-08 21:20:11 -05:00
2016-01-12 16:30:34 -08:00
2016-01-12 15:46:17 -08:00
2015-12-30 13:01:03 -05:00
2016-01-12 16:30:34 -08:00
2015-10-15 10:33:21 -04:00
2015-11-06 17:50:42 -08:00
2016-01-12 17:11:47 -08:00
2016-01-12 17:11:47 -08:00
2015-09-11 15:21:34 -07:00
2016-01-04 10:28:40 -05:00
2015-11-11 02:18:26 -05:00
2015-12-13 19:46:12 -05:00
2015-12-06 21:17:16 -05:00
2016-01-12 17:11:47 -08:00
2016-01-06 08:26:52 -05:00
2015-11-06 17:50:42 -08:00
2016-01-09 02:55:35 -05:00
2015-11-09 15:11:24 -08:00
2016-01-06 13:03:18 -05:00
2015-11-06 17:50:42 -08:00
2015-09-22 15:09:53 -07:00
2016-01-12 17:11:47 -08:00