Skip to contentSkip to conversation

Staging: nvec: removes useless cast on a void pointer.

PATCH In review Ben Marsh 2 participants 2 messages Mar 13, 2016 – Mar 21, 2016 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

Ben Marsh

author
#0 lore raw

PATCH 1/1 Staging: nvec: removes useless cast on a void pointer.

Patch to nvec.c to remove a useless cast on a void pointer.

---
 drivers/staging/nvec/nvec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/nvec/nvec.c +1 -1
index c335ae2..52d1363 100644
@@ -141,7 +141,7 @@ static int nvec_status_notifier(struct notifier_block *nb,
 {
 	struct nvec_chip *nvec = container_of(nb, struct nvec_chip,
 						nvec_status_notifier);
-	unsigned char *msg = (unsigned char *)data;
+	unsigned char *msg = data;
 
 	if (event_type != NVEC_CNTL)
 		return NOTIFY_DONE;
Signature · 1 line
1.9.1

A message that is not in the archive (sent off-list or not yet received): 20160313181435.GA12242-gM/[email protected]

#2 lore raw
Quoted 6 lines · Ben Marsh

Patch to nvec.c to remove a useless cast on a void pointer.

---
 drivers/staging/nvec/nvec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Someone sent this before you did :(