diff options
author | Li Heng <liheng40@huawei.com> | 2020-07-29 10:59:00 +0200 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2020-07-31 07:28:25 +0200 |
commit | 2ed0b7578170c3bab10cde09d4440897b305e40c (patch) | |
tree | 47d5167f3c224c1c7e34ba8731e0c7c8ce9861dc /.cocciconfig | |
parent | 9p: remove unused code in 9p (diff) | |
download | linux-2ed0b7578170c3bab10cde09d4440897b305e40c.tar.xz linux-2ed0b7578170c3bab10cde09d4440897b305e40c.zip |
9p: Remove unneeded cast from memory allocation
Remove kmem_cache_alloc return value cast.
Coccinelle emits the following warning:
./fs/9p/vfs_inode.c:226:12-29: WARNING: casting value returned by memory allocation function to (struct v9fs_inode *) is useless.
Link: http://lkml.kernel.org/r/1596013140-49744-1-git-send-email-liheng40@huawei.com
Signed-off-by: Li Heng <liheng40@huawei.com>
[Dominique: commit message wording]
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions