summaryrefslogtreecommitdiffstats
path: root/firmware/buflib.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-09-07 23:20:12 +0000
committerThomas Martitz <kugel@rockbox.org>2011-09-07 23:20:12 +0000
commitdaaae99c1cbeca2a67065ac5ac5d4e9eb32df109 (patch)
tree87bc968b387ebbe28be07ac09d939e6c0dc6720e /firmware/buflib.c
parent5296af838c39b8b7c4b00a3c896345f9e0719dcf (diff)
downloadrockbox-daaae99c1cbeca2a67065ac5ac5d4e9eb32df109.tar.gz
rockbox-daaae99c1cbeca2a67065ac5ac5d4e9eb32df109.zip
Remove unecessary casting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30470 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/buflib.c')
-rw-r--r--firmware/buflib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/buflib.c b/firmware/buflib.c
index 7c5f3d208e..d6cbf3049b 100644
--- a/firmware/buflib.c
+++ b/firmware/buflib.c
@@ -687,7 +687,7 @@ buflib_shrink(struct buflib_context* ctx, int handle, void* new_start, size_t ne
const char* buflib_get_name(struct buflib_context *ctx, int handle)
{
- union buflib_data *data = (union buflib_data*)ALIGN_DOWN((intptr_t)buflib_get_data(ctx, handle), sizeof (*data));
+ union buflib_data *data = ALIGN_DOWN(buflib_get_data(ctx, handle), sizeof (*data));
size_t len = data[-1].val;
if (len <= 1)
return NULL;