Articles de cet auteur
Feb 27 2016
staging: [media] mn88472: simplify NULL tests
Author: Eva Rachel Retuya <eraretuya@gmail.com> Replace direct comparisons to NULL i.e. ‘x == NULL’ with ‘!x’ for consistency. Coccinelle semantic patch used: @@ identifier func; expression x; statement Z; @@ x = func(…); if ( ( + ! x – == NULL | + ! – NULL == x ) ) Z Signed-off-by: Eva Rachel …
Feb 26 2016
staging: rtl8188eu: core: Remove useless return variables
Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> This patch removes unnecessary return variables and compresses the return logic. The coccinelle script that finds and fixes this issue is: @@ type T; identifier i,f; constant C; @@ – T i; …when != i when strict ( return -C; | – i = + return f(…); – return i; ) …
Feb 26 2016
staging: rtl8188eu: os_dep: Remove useless return variables
Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> This patch removes unnecessary return variables and compresses the return logic. The coccinelle script that finds and fixes this issue is: @@ type T; identifier i,f; constant C; @@ – T i; …when != i when strict ( return -C; | – i = + return f(…); – return i; ) …
Feb 26 2016
staging: lustre: llite: Replace kmem_cache_alloc with kmem_cache_zalloc
Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Use kmem_cache_zalloc instead of manually setting kmem_cache_alloc with flag GFP_ZERO since kmem_alloc_zalloc sets allocated memory to zero. The Coccinelle semantic patch used to make this change is as follows: // @@ expression e,f; @@ – kmem_cache_alloc(e, f |__GFP_ZERO) + kmem_cache_zalloc(e, f) // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman — …
Feb 26 2016
staging: lustre: ldlm: Replace kmem_cache_alloc with kmem_cache_zalloc
Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Use kmem_cache_zalloc instead of manually setting kmem_cache_alloc with flag GFP_ZERO since kmem_alloc_zalloc sets allocated memory to zero. The Coccinelle semantic patch used to make this change is as follows: // @@ expression e,f; @@ – kmem_cache_alloc(e, f |__GFP_ZERO) + kmem_cache_zalloc(e, f) // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman — …
Feb 26 2016
staging: lustre: osc: Replace kmem_cache_alloc with kmem_cache_zalloc
Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Use kmem_cache_zalloc instead of manually setting kmem_cache_alloc with flag GFP_ZERO since kmem_alloc_zalloc sets allocated memory to zero. The Coccinelle semantic patch used to make this change is as follows: // @@ expression e,f; @@ – kmem_cache_alloc(e, f |__GFP_ZERO) + kmem_cache_zalloc(e, f) // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman — …
Feb 26 2016
staging: lustre: ptlrpc: Replace kmem_cache_alloc with kmem_cache_zalloc
Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Use kmem_cache_zalloc instead of manually setting kmem_cache_alloc with flag GFP_ZERO since kmem_alloc_zalloc sets allocated memory to zero. The Coccinelle semantic patch used to make this change is as follows: // @@ expression e,f; @@ – kmem_cache_alloc(e, f |__GFP_ZERO) + kmem_cache_zalloc(e, f) // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman — …
Feb 26 2016
staging: lustre: obdecho: Replace kmem_cache_alloc with kmem_cache_zalloc
Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Use kmem_cache_zalloc instead of manually setting kmem_cache_alloc with flag GFP_ZERO since kmem_alloc_zalloc sets allocated memory to zero. The Coccinelle semantic patch used to make this change is as follows: // @@ expression e,f; @@ – kmem_cache_alloc(e, f |__GFP_ZERO) + kmem_cache_zalloc(e, f) // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman — …
Feb 26 2016
staging: lustre: lov: Replace kmem_cache_alloc with kmem_cache_zalloc
Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Use kmem_cache_zalloc instead of manually setting kmem_cache_alloc with flag GFP_ZERO since kmem_alloc_zalloc sets allocated memory to zero. The Coccinelle semantic patch used to make this change is as follows: // @@ expression e,f; @@ – kmem_cache_alloc(e, f |__GFP_ZERO) + kmem_cache_zalloc(e, f) // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman — …
Feb 26 2016
staging: lustre: obdclass: Replace kmem_cache_alloc with kmem_cache_zalloc
Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Use kmem_cache_zalloc instead of manually setting kmem_cache_alloc with flag GFP_ZERO since kmem_alloc_zalloc sets allocated memory to zero. The Coccinelle semantic patch used to make this change is as follows: // @@ expression e,f; @@ – kmem_cache_alloc(e, f |__GFP_ZERO) + kmem_cache_zalloc(e, f) // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman — …