summaryrefslogtreecommitdiff
path: root/include/linux/patchkey.h
diff options
context:
space:
mode:
authorShraddha Barke <shraddha.6596@gmail.com>2015-08-05 01:52:45 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-05 12:18:01 -0700
commit4f016420d368480762061632f9a9254fd3a89239 (patch)
tree1d760b63668d78c9b73f2bbf184d6c191c8f329f /include/linux/patchkey.h
parent91f2208c37ab08343b118601eaa0d9bb76fc8762 (diff)
Staging: lustre: obdclass: Use kasprintf
This patch uses kasprintf which combines kzalloc and sprintf. kasprintf also takes care of the size calculation. Semantic patch used is as follows: @@ expression a,flag; expression list args; statement S; @@ a = - \(kmalloc\|kzalloc\)(...,flag) + kasprintf (flag,args) <... when != a if (a == NULL || ...) S ...> - sprintf(a,args); Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/patchkey.h')
0 files changed, 0 insertions, 0 deletions