summaryrefslogtreecommitdiffstats
path: root/fs/xfs/scrub/attr.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-11-06 20:53:58 +0100
committerDarrick J. Wong <darrick.wong@oracle.com>2017-11-06 20:53:58 +0100
commit88aa5de46ba4eecbed2cea7e74fa8ef7bea12c87 (patch)
tree945b95383c4445d2c2577189dd9099f4f00c5a4f /fs/xfs/scrub/attr.c
parentxfs: always define STATIC to static noinline (diff)
downloadlinux-88aa5de46ba4eecbed2cea7e74fa8ef7bea12c87.tar.xz
linux-88aa5de46ba4eecbed2cea7e74fa8ef7bea12c87.zip
xfs: trivial sparse fixes for the new scrub code
[darrick: fix broken initializer in xfs_scrub_xattr] 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>
Diffstat (limited to 'fs/xfs/scrub/attr.c')
-rw-r--r--fs/xfs/scrub/attr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/scrub/attr.c b/fs/xfs/scrub/attr.c
index 51a553337dc4..5cf30deb8144 100644
--- a/fs/xfs/scrub/attr.c
+++ b/fs/xfs/scrub/attr.c
@@ -91,7 +91,7 @@ xfs_scrub_xattr_listent(
int valuelen)
{
struct xfs_scrub_xattr *sx;
- struct xfs_da_args args = {0};
+ struct xfs_da_args args = { NULL };
int error = 0;
sx = container_of(context, struct xfs_scrub_xattr, context);
@@ -420,7 +420,7 @@ int
xfs_scrub_xattr(
struct xfs_scrub_context *sc)
{
- struct xfs_scrub_xattr sx = { 0 };
+ struct xfs_scrub_xattr sx;
struct attrlist_cursor_kern cursor = { 0 };
xfs_dablk_t last_checked = -1U;
int error = 0;