Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a16750f5 authored by Vishwanath Raju K's avatar Vishwanath Raju K
Browse files

ion: fix ion_alloc() return type



Fix compilation issue with incorrect return type from
ion_alloc() when CONFIG_ION is not defined.

Change-Id: Iefc2b06ab7c26677486218ab3da3a504f29f0e2e
Signed-off-by: default avatarVishwanath Raju K <vishk@codeaurora.org>
parent 51683be8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -30,7 +30,7 @@ struct dma_buf *ion_alloc(size_t len, unsigned int heap_id_mask,
static inline struct dma_buf *ion_alloc(size_t len, unsigned int heap_id_mask,
					unsigned int flags)
{
	return -ENOMEM;
	return ERR_PTR(-ENOMEM);
}

#endif /* CONFIG_ION */