* [Qemu-devel] [PATCH] hw/sd/sd.c: Drop unused sd_acmd_type[] array
@ 2014-06-03 17:29 Peter Maydell
2014-06-04 13:07 ` Peter Crosthwaite
2014-06-08 10:55 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
0 siblings, 2 replies; 3+ messages in thread
From: Peter Maydell @ 2014-06-03 17:29 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial, patches
Drop the sd_acmd_type[] array: it is never used. (The equivalent
sd_cmd_type[] array for normal commands is used to identify
those commands whose argument includes the card address in the
top 16 bits; but for app commands the card address is passed
with the APP_CMD prefix, not with the argument to the app command
itself.)
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
clang 3.4 warns about this unused variable. If we ever turn out to
need the information it's all in the sd card spec anyway.
hw/sd/sd.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/hw/sd/sd.c b/hw/sd/sd.c
index 4502ad1..5efe8c1 100644
--- a/hw/sd/sd.c
+++ b/hw/sd/sd.c
@@ -151,17 +151,6 @@ static const sd_cmd_type_t sd_cmd_type[64] = {
sd_adtc, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none,
};
-static const sd_cmd_type_t sd_acmd_type[64] = {
- sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_ac, sd_none,
- sd_none, sd_none, sd_none, sd_none, sd_none, sd_adtc, sd_none, sd_none,
- sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_adtc, sd_ac,
- sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none,
- sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none,
- sd_none, sd_bcr, sd_ac, sd_none, sd_none, sd_none, sd_none, sd_none,
- sd_none, sd_none, sd_none, sd_adtc, sd_none, sd_none, sd_none, sd_none,
- sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none,
-};
-
static const int sd_cmd_class[64] = {
0, 0, 0, 0, 0, 9, 10, 0, 0, 0, 0, 1, 0, 0, 0, 0,
2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 6, 6, 6, 6,
--
1.9.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] hw/sd/sd.c: Drop unused sd_acmd_type[] array
2014-06-03 17:29 [Qemu-devel] [PATCH] hw/sd/sd.c: Drop unused sd_acmd_type[] array Peter Maydell
@ 2014-06-04 13:07 ` Peter Crosthwaite
2014-06-08 10:55 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
1 sibling, 0 replies; 3+ messages in thread
From: Peter Crosthwaite @ 2014-06-04 13:07 UTC (permalink / raw)
To: Peter Maydell
Cc: qemu-trivial, qemu-devel@nongnu.org Developers, Patch Tracking
On Wed, Jun 4, 2014 at 3:29 AM, Peter Maydell <peter.maydell@linaro.org> wrote:
> Drop the sd_acmd_type[] array: it is never used. (The equivalent
> sd_cmd_type[] array for normal commands is used to identify
> those commands whose argument includes the card address in the
> top 16 bits; but for app commands the card address is passed
> with the APP_CMD prefix, not with the argument to the app command
> itself.)
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
> ---
> clang 3.4 warns about this unused variable. If we ever turn out to
> need the information it's all in the sd card spec anyway.
>
> hw/sd/sd.c | 11 -----------
> 1 file changed, 11 deletions(-)
>
> diff --git a/hw/sd/sd.c b/hw/sd/sd.c
> index 4502ad1..5efe8c1 100644
> --- a/hw/sd/sd.c
> +++ b/hw/sd/sd.c
> @@ -151,17 +151,6 @@ static const sd_cmd_type_t sd_cmd_type[64] = {
> sd_adtc, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none,
> };
>
> -static const sd_cmd_type_t sd_acmd_type[64] = {
> - sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_ac, sd_none,
> - sd_none, sd_none, sd_none, sd_none, sd_none, sd_adtc, sd_none, sd_none,
> - sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_adtc, sd_ac,
> - sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none,
> - sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none,
> - sd_none, sd_bcr, sd_ac, sd_none, sd_none, sd_none, sd_none, sd_none,
> - sd_none, sd_none, sd_none, sd_adtc, sd_none, sd_none, sd_none, sd_none,
> - sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none,
> -};
> -
> static const int sd_cmd_class[64] = {
> 0, 0, 0, 0, 0, 9, 10, 0, 0, 0, 0, 1, 0, 0, 0, 0,
> 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 6, 6, 6, 6,
> --
> 1.9.2
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] hw/sd/sd.c: Drop unused sd_acmd_type[] array
2014-06-03 17:29 [Qemu-devel] [PATCH] hw/sd/sd.c: Drop unused sd_acmd_type[] array Peter Maydell
2014-06-04 13:07 ` Peter Crosthwaite
@ 2014-06-08 10:55 ` Michael Tokarev
1 sibling, 0 replies; 3+ messages in thread
From: Michael Tokarev @ 2014-06-08 10:55 UTC (permalink / raw)
To: Peter Maydell, qemu-devel; +Cc: qemu-trivial, patches
Applied to -trivial, thank you!
/mjt
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-08 10:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-03 17:29 [Qemu-devel] [PATCH] hw/sd/sd.c: Drop unused sd_acmd_type[] array Peter Maydell
2014-06-04 13:07 ` Peter Crosthwaite
2014-06-08 10:55 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).