aboutsummaryrefslogtreecommitdiff
path: root/pan
diff options
context:
space:
mode:
authorManinder Singh <maninder1.s@samsung.com>2015-06-15 13:25:07 +0000
committerCyril Hrubis <chrubis@suse.cz>2015-06-16 21:59:53 +0200
commit34333488a1122b0ebea644cb29e2cb33f7db9a56 (patch)
treeefa56da68347848ed4b6042a58e71fe34a059db3 /pan
parent6ad4eb4652c657c615af7e1817dec029ed3358fd (diff)
pan/symbol.c: remove unnecessary malloc type cast
Signed-off-by: Maninder Singh <maninder1.s@samsung.com> Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
Diffstat (limited to 'pan')
-rw-r--r--pan/symbol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pan/symbol.c b/pan/symbol.c
index ca9964ab2..37521143e 100644
--- a/pan/symbol.c
+++ b/pan/symbol.c
@@ -86,7 +86,7 @@ SYM newsym(void)
{
SYM h;
- if ((h = (SYM) malloc(sizeof(struct symh))) == NULL) {
+ if ((h = malloc(sizeof(struct symh))) == NULL) {
sym_error = "sym header malloc failed!";
return (NULL);
}
@@ -101,7 +101,7 @@ static struct sym *mknode(struct sym *next, char *key, void *data)
{
struct sym *n;
- if ((n = (struct sym *)malloc(sizeof(struct sym))) == NULL) {
+ if ((n = malloc(sizeof(struct sym))) == NULL) {
sym_error = "sym node malloc failed!";
return (NULL);
}