> -----Original Message----- > From: Stephen Hemminger <step...@networkplumber.org> > Sent: Monday, January 24, 2022 5:47 PM > To: dev@dpdk.org > Cc: Stephen Hemminger <step...@networkplumber.org>; Zhang, Roy Fan > <roy.fan.zh...@intel.com>; Ashish Gupta <ashish.gu...@marvell.com> > Subject: [PATCH v2 77/83] compressdev: remove unnecessary NULL checks > > Remove redundant NULL pointer checks before free functions > found by nullfree.cocci > > Signed-off-by: Stephen Hemminger <step...@networkplumber.org> > --- > lib/compressdev/rte_compressdev.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/lib/compressdev/rte_compressdev.c > b/lib/compressdev/rte_compressdev.c > index 2e9218af68f6..d4f7d4d3daf2 100644 > --- a/lib/compressdev/rte_compressdev.c > +++ b/lib/compressdev/rte_compressdev.c > @@ -405,8 +405,7 @@ rte_compressdev_queue_pairs_release(struct > rte_compressdev *dev) > return ret; > } > > - if (dev->data->queue_pairs != NULL) > - rte_free(dev->data->queue_pairs); > + rte_free(dev->data->queue_pairs); > dev->data->queue_pairs = NULL; > dev->data->nb_queue_pairs = 0; > > -- > 2.30.2 Acked-by: Fan Zhang <roy.fan.zh...@intel.com>
- [PATCH v2 70/83] raw/dpaa2_qdma: remove unnecessary... Stephen Hemminger
- [PATCH v2 71/83] raw/ifpga: remove unnecessary NULL... Stephen Hemminger
- [PATCH v2 72/83] raw/skeleton: remove unnecessary N... Stephen Hemminger
- [PATCH v2 73/83] regex/cn9k: remove unnecessary NUL... Stephen Hemminger
- [PATCH v2 74/83] regex/mlx5: remove unnecessary NUL... Stephen Hemminger
- [PATCH v2 75/83] vdpa/ifc: remove unnecessary NULL ... Stephen Hemminger
- [PATCH v2 76/83] vdpa/mlx5: remove unnecessary NULL... Stephen Hemminger
- [PATCH v2 77/83] compressdev: remove unnecessary NU... Stephen Hemminger
- RE: [PATCH v2 77/83] compressdev: remove unnece... Zhang, Roy Fan
- [PATCH v2 78/83] ethdev: remove unnecessary NULL ch... Stephen Hemminger
- [PATCH v2 79/83] graph: remove unnecessary NULL che... Stephen Hemminger
- [PATCH v2 80/83] ipsec: remove unnecessary NULL che... Stephen Hemminger
- [PATCH v2 81/83] port: remove unnecessary NULL chec... Stephen Hemminger
- [PATCH v2 82/83] power: remove unnecessary NULL che... Stephen Hemminger
- [PATCH v2 83/83] reorder: remove unnecessary NULL c... Stephen Hemminger
- Re: [PATCH v2 00/83] remove unnecessary null checks Thomas Monjalon
- Re: [PATCH v2 00/83] remove unnecessary null ch... Stephen Hemminger
- [PATCH v3 00/36] remove unnecessary null checks Stephen Hemminger