[PATCH] Staging: rtl8723bs: Do not check for NOT NULL before kfree()

2017-12-19 Thread Shreeya Patel
Do not check for NOT NULL before calling kfree because if the pointer is NULL, no action occurs. Done using the following semantic patch by coccinelle. @@ expression ptr; @@ - if (ptr != NULL) kfree(ptr); Signed-off-by: Shreeya Patel ---

[PATCH] Staging: rtl8723bs: Do not check for NOT NULL before kfree()

2017-12-19 Thread Shreeya Patel
Do not check for NOT NULL before calling kfree because if the pointer is NULL, no action occurs. Done using the following semantic patch by coccinelle. @@ expression ptr; @@ - if (ptr != NULL) kfree(ptr); Signed-off-by: Shreeya Patel --- drivers/staging/rtl8723bs/core/rtw_cmd.c | 4 +--- 1