mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
[XFS] Remove unused arg from kmem_free()
kmem_free() function takes (ptr, size) arguments but doesn't actually use second one. This patch removes size argument from all callsites. SGI-PV: 981498 SGI-Modid: xfs-linux-melb:xfs-kern:31050a Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
This commit is contained in:
parent
7c12f29650
commit
f0e2d93c29
31 changed files with 122 additions and 138 deletions
|
@ -150,8 +150,7 @@ xfs_errortag_clearall(xfs_mount_t *mp, int loud)
|
|||
xfs_etest[i]);
|
||||
xfs_etest[i] = 0;
|
||||
xfs_etest_fsid[i] = 0LL;
|
||||
kmem_free(xfs_etest_fsname[i],
|
||||
strlen(xfs_etest_fsname[i]) + 1);
|
||||
kmem_free(xfs_etest_fsname[i]);
|
||||
xfs_etest_fsname[i] = NULL;
|
||||
}
|
||||
}
|
||||
|
@ -175,7 +174,7 @@ xfs_fs_vcmn_err(int level, xfs_mount_t *mp, char *fmt, va_list ap)
|
|||
newfmt = kmem_alloc(len, KM_SLEEP);
|
||||
sprintf(newfmt, "Filesystem \"%s\": %s", mp->m_fsname, fmt);
|
||||
icmn_err(level, newfmt, ap);
|
||||
kmem_free(newfmt, len);
|
||||
kmem_free(newfmt);
|
||||
} else {
|
||||
icmn_err(level, fmt, ap);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue