[PATCH] pktgen: remove useless assignment From: Alexey Dobriyan On main codepath pkt_dev is immediately rewritten. On error codepath it isn't used. Noticed by Coverity checker. Signed-off-by: Alexey Dobriyan Signed-off-by: Alexey Dobriyan Index: linux-kj/net/core/pktgen.c =================================================================== --- linux-kj.orig/net/core/pktgen.c 2005-10-11 18:37:41.000000000 +0400 +++ linux-kj/net/core/pktgen.c 2005-10-11 18:38:14.000000000 +0400 @@ -2867,7 +2867,7 @@ static int pktgen_add_device(struct pktg /* We don't allow a device to be on several threads */ - if( (pkt_dev = __pktgen_NN_threads(ifname, FIND)) == NULL) { + if(__pktgen_NN_threads(ifname, FIND) == NULL) { pkt_dev = kmalloc(sizeof(struct pktgen_dev), GFP_KERNEL); if (!pkt_dev)