Tag: 4c42d979816a0bc1d87aaabc4089d857942ddfe2

Staging: nvec: use !x instead of x == NULL

Author: Somya Anand <somyaanand214@gmail.com> Functions like devm_kzalloc, kmalloc_array, devm_ioremap, usb_alloc_urb, alloc_netdev return NULL as a return value on failure. Generally, When NULL represents failure, !x is commonly used. This patch cleans up the tests on the results of these functions, thereby using !x instead of x == NULL or NULL == x. This is done …

Continue reading