diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-09-07 23:20:12 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-09-07 23:20:12 +0000 |
commit | daaae99c1cbeca2a67065ac5ac5d4e9eb32df109 (patch) | |
tree | 87bc968b387ebbe28be07ac09d939e6c0dc6720e | |
parent | 5296af838c39b8b7c4b00a3c896345f9e0719dcf (diff) | |
download | rockbox-daaae99c1cbeca2a67065ac5ac5d4e9eb32df109.tar.gz rockbox-daaae99c1cbeca2a67065ac5ac5d4e9eb32df109.zip |
Remove unecessary casting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30470 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/buflib.c | 2 |
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 | |||
687 | 687 | ||
688 | const char* buflib_get_name(struct buflib_context *ctx, int handle) | 688 | const char* buflib_get_name(struct buflib_context *ctx, int handle) |
689 | { | 689 | { |
690 | union buflib_data *data = (union buflib_data*)ALIGN_DOWN((intptr_t)buflib_get_data(ctx, handle), sizeof (*data)); | 690 | union buflib_data *data = ALIGN_DOWN(buflib_get_data(ctx, handle), sizeof (*data)); |
691 | size_t len = data[-1].val; | 691 | size_t len = data[-1].val; |
692 | if (len <= 1) | 692 | if (len <= 1) |
693 | return NULL; | 693 | return NULL; |