Skip to contentSkip to conversation

staging: cxt1e1: remove unneeded a value

PATCH In review Daeseok Youn 1 participant 1 message Mar 4, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 7/7 staging: cxt1e1: remove unneeded a value

It doesn't need to assign name array address to np pointer.

---
 drivers/staging/cxt1e1/linux.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/staging/cxt1e1/linux.c +2 -3
index 599a5ef..390b1f5 100644
@@ -205,15 +205,14 @@ status_t
 c4_wq_port_init(mpi_t *pi)
 {
 
-	char        name[16], *np;  /* NOTE: name of the queue limited by system
+	char        name[16];  /* NOTE: name of the queue limited by system
 				     * to 10 characters */
 
 	if (pi->wq_port)
 		return 0;                   /* already initialized */
 
-	np = name;
 	memset(name, 0, 16);
-	sprintf(np, "%s%d", pi->up->devname, pi->portnum); /* IE pmcc4-01) */
+	sprintf(name, "%s%d", pi->up->devname, pi->portnum); /* IE pmcc4-01) */
 
 #ifdef RLD_RESTART_DEBUG
 	pr_info(">> %s: creating workqueue <%s> for Port %d.\n",
Signature · 1 line
1.7.4.4