diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-07-12 14:01:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-07-12 14:07:46 +0400 |
commit | 8946c538f6627a3b98586be1c58f49674ef32bcf (patch) | |
tree | c40e78377df2d6559e188b8fb16c140564482c67 | |
parent | f905eba7c89de599fb0d10d941ce801481bb3a00 (diff) |
remove redundant NULL checks
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index 84cfe929e0f..4b4755ac9ac 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -185,14 +185,9 @@ Brush *BKE_brush_copy(Brush *brush) /* not brush itself */ void BKE_brush_free(Brush *brush) { - if (brush->mtex.tex) - id_us_min(&brush->mtex.tex->id); - - if (brush->mask_mtex.tex) - id_us_min(&brush->mask_mtex.tex->id); - - if (brush->paint_curve) - id_us_min(&brush->paint_curve->id); + id_us_min((ID *)brush->mtex.tex); + id_us_min((ID *)brush->mask_mtex.tex); + id_us_min((ID *)brush->paint_curve); if (brush->icon_imbuf) IMB_freeImBuf(brush->icon_imbuf); |