se_alloc returns a non NULL pointer so we don't have to check for NULL

svn path=/trunk/; revision=30343
This commit is contained in:
Kovarththanan Rajaratnam 2009-10-05 18:24:59 +00:00
parent e567d96a93
commit 14c4a8f23b
1 changed files with 2 additions and 5 deletions

View File

@ -65,17 +65,14 @@ p_add_proto_data(frame_data *fd, int proto, void *proto_data)
{
frame_proto_data *p1 = se_alloc(sizeof(frame_proto_data));
g_assert(p1 != NULL);
p1 -> proto = proto;
p1 -> proto_data = proto_data;
p1->proto = proto;
p1->proto_data = proto_data;
/* Add it to the GSLIST */
fd -> pfd = g_slist_insert_sorted(fd -> pfd,
(gpointer *)p1,
p_compare);
}
void *