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] staging: as102: Remove redundant NULL check before 
release_firmware() and pointless comments
Author:  Jesper Juhl <[email protected]>
Date:    Mon Apr 9 16:51:48 2012 -0300

release_firmware() deals gracefullt with NULL pointers - it's
redundant to check for them before calling the function.

Also remove a few pointless comments - it's rather obvious from the
code that kfree() free's a buffer and that release_firmware() releases
firmware - comments just stating that add no value.

Signed-off-by: Jesper Juhl <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/staging/media/as102/as102_fw.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

---

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

diff --git a/drivers/staging/media/as102/as102_fw.c 
b/drivers/staging/media/as102/as102_fw.c
index 1075fb1..b9670ee 100644
--- a/drivers/staging/media/as102/as102_fw.c
+++ b/drivers/staging/media/as102/as102_fw.c
@@ -230,11 +230,8 @@ int as102_fw_upload(struct as10x_bus_adapter_t *bus_adap)
        pr_info("%s: firmware: %s loaded with success\n",
                DRIVER_NAME, fw2);
 error:
-       /* free data buffer */
        kfree(cmd_buf);
-       /* release firmware if needed */
-       if (firmware != NULL)
-               release_firmware(firmware);
+       release_firmware(firmware);
 
        LEAVE();
        return errno;

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

Reply via email to