forked from osmocom/wireshark
cemi: Remove superfluous checks
Remove superfluous checks on pinfo when getting cinfo. CID 1440377 Change-Id: Id80c4344bde755ffe54b01049108d60bc9f03323 Reviewed-on: https://code.wireshark.org/review/33166 Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
757ada0e24
commit
6580ca9b93
|
@ -1451,7 +1451,7 @@ static void dissect_range( tvbuff_t *tvb, packet_info *pinfo, proto_item *node,
|
|||
static void dissect_prop_descr( tvbuff_t* tvb, packet_info* pinfo, proto_item* cemi_node, proto_tree* cemi_list, gint* p_offset, gint size, guint8* p_error )
|
||||
{
|
||||
gint offset = *p_offset;
|
||||
column_info* cinfo = pinfo ? pinfo->cinfo : NULL;
|
||||
column_info* cinfo = pinfo->cinfo;
|
||||
guint8 error = 0;
|
||||
|
||||
/* 4 bytes Property Description */
|
||||
|
@ -1532,7 +1532,7 @@ static void dissect_prop_descr( tvbuff_t* tvb, packet_info* pinfo, proto_item* c
|
|||
static void dissect_pid_ext( tvbuff_t *tvb, packet_info *pinfo, proto_item *cemi_node, proto_tree *cemi_list, gint *p_offset, gint size, guint8 *p_error )
|
||||
{
|
||||
gint offset = *p_offset;
|
||||
column_info* cinfo = pinfo ? pinfo->cinfo : NULL;
|
||||
column_info* cinfo = pinfo->cinfo;
|
||||
guint8 error = 0;
|
||||
|
||||
/* 2 bytes Object Type */
|
||||
|
|
Loading…
Reference in New Issue