Message ID | 20190330130913.GA8643@roam (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | staging: android: ion: fix err_cast.cocci warnings | expand |
--- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -424,7 +424,7 @@ struct dma_buf *ion_alloc(size_t len, un return ERR_PTR(-ENODEV); if (IS_ERR(buffer)) - return ERR_PTR(PTR_ERR(buffer)); + return ERR_CAST(buffer); exp_info.ops = &dma_buf_ops; exp_info.size = buffer->size;