projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c1d9e4
)
xfs: use NULL instead of 0 to initialize a pointer in xfs_getfsmap
author
Christoph Hellwig
<hch@lst.de>
Fri, 21 Apr 2017 18:24:39 +0000
(11:24 -0700)
committer
Darrick J. Wong
<darrick.wong@oracle.com>
Tue, 25 Apr 2017 16:40:41 +0000
(09:40 -0700)
Found by sparse.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_fsmap.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/xfs/xfs_fsmap.c
b/fs/xfs/xfs_fsmap.c
index 48ce356da9e9040cccaedb32162ebaafbbe6ac03..3683819887a5658eff23d6e3258d21567bbdc0b4 100644
(file)
--- a/
fs/xfs/xfs_fsmap.c
+++ b/
fs/xfs/xfs_fsmap.c
@@
-827,7
+827,7
@@
xfs_getfsmap(
struct xfs_trans *tp = NULL;
struct xfs_fsmap dkeys[2]; /* per-dev keys */
struct xfs_getfsmap_dev handlers[XFS_GETFSMAP_DEVS];
- struct xfs_getfsmap_info info = {
0
};
+ struct xfs_getfsmap_info info = {
NULL
};
int i;
int error = 0;