commit a658712d319a3933cc75b5e0f2a29069b2e0ffd1 parent 5303a1155412a9b9e1b92844774e2e01ddae639e Author: Christophe Coustet <christophe.coustet@meso-star.com> Date: Mon, 14 Nov 2016 11:46:51 +0100 Remove an useless cast Diffstat:
| M | src/ssol_spectrum.c | | | 3 | +-- |
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/ssol_spectrum.c b/src/ssol_spectrum.c @@ -127,8 +127,7 @@ ssol_spectrum_create goto error; } - spectrum = (struct ssol_spectrum*)MEM_CALLOC - (dev->allocator, 1, sizeof(struct ssol_spectrum)); + spectrum = MEM_CALLOC(dev->allocator, 1, sizeof(struct ssol_spectrum)); if(!spectrum) { res = RES_MEM_ERR; goto error;