Skip to contentSkip to conversation

staging: android: make function static

PATCH New Sudip Mukherjee 1 participant 1 message Apr 5, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: android: make function static

The only user of ion_handle_put() is within the file ion.c, so we can safely make it static. Just to be double sure, checked the function ion_handle_get() which is static.
So we can make ion_handle_put() static.

---
 drivers/staging/android/ion/ion.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/android/ion/ion.c +1 -1
index d4c6207..bbc8bc5 100644
@@ -396,7 +396,7 @@ static int ion_handle_put_nolock(struct ion_handle *handle)
 	return ret;
 }
 
-int ion_handle_put(struct ion_handle *handle)
+static int ion_handle_put(struct ion_handle *handle)
 {
 	struct ion_client *client = handle->client;
 	int ret;
Signature · 1 line
1.9.1