Patch for fixing compilation warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am hereby submitting my first patch for removing the following
compile time warning

kernel/marker.c: In function `remove_marker':
kernel/marker.c:435: warning: `e' might be used uninitialized in this function

Please provide the feedback on same.

Signed-off-by: Meenakshi <khurana.meenakshi@xxxxxxxxx>

--- kernel/marker.c.orig        2009-11-17 16:41:29.000000000 +0530
+++ kernel/marker.c     2009-11-17 16:41:41.000000000 +0530
@@ -432,7 +432,7 @@ static int remove_marker(const char *nam
 {
        struct hlist_head *head;
        struct hlist_node *node;
-       struct marker_entry *e;
+       struct marker_entry *e = NULL;
        int found = 0;
        size_t len = strlen(name) + 1;
        u32 hash = jhash(name, len-1, 0);


Thanks & Regards
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux