[hipl-commit] [tiny] Rev 3588: Removed cast of malloc return value in hipd/netdev.c.

  • From: Tim Just <tim.just@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Mon, 1 Mar 2010 13:14:37 +0200

Committer: Tim Just <tim.just@xxxxxxxxxxxxxx>
Date: Mon Mar 01 12:13:40 2010 +0100
Revision: 3588
Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: tiny

Log:
  Removed cast of malloc return value in hipd/netdev.c.

Modified:
  M  hipd/netdev.c

=== modified file 'hipd/netdev.c'
--- hipd/netdev.c       2010-03-01 09:27:42 +0000
+++ hipd/netdev.c       2010-03-01 11:13:40 +0000
@@ -385,11 +385,8 @@
         return;
     }
 
-    if ((n = (struct netdev_address *) malloc(sizeof(struct netdev_address)))
-        == NULL)
-    {
-        HIP_ERROR("Error when allocating memory to a network device " \
-                  "address.\n");
+    if ((n = malloc(sizeof(struct netdev_address))) == NULL) {
+        HIP_ERROR("Error when allocating memory to a network device 
address.\n");
         return;
     }

Other related posts:

  • » [hipl-commit] [tiny] Rev 3588: Removed cast of malloc return value in hipd/netdev.c. - Tim Just