This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] lirc_zilog: Deletion of unnecessary checks before vfree()
Author:  Markus Elfring <[email protected]>
Date:    Mon Dec 1 15:49:39 2014 -0300

The vfree() function performs also input parameter validation. Thus the test
around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/staging/media/lirc/lirc_zilog.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=e8379ecff31c0a172cb2ccc7cf28c24b45f144cf

diff --git a/drivers/staging/media/lirc/lirc_zilog.c 
b/drivers/staging/media/lirc/lirc_zilog.c
index 1ccf626..1e15d2c 100644
--- a/drivers/staging/media/lirc/lirc_zilog.c
+++ b/drivers/staging/media/lirc/lirc_zilog.c
@@ -730,11 +730,9 @@ static int send_boot_data(struct IR_tx *tx)
 static void fw_unload_locked(void)
 {
        if (tx_data) {
-               if (tx_data->code_sets)
-                       vfree(tx_data->code_sets);
+               vfree(tx_data->code_sets);
 
-               if (tx_data->datap)
-                       vfree(tx_data->datap);
+               vfree(tx_data->datap);
 
                vfree(tx_data);
                tx_data = NULL;

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to