diff mbox

xilinx_ethlite: Clean up after commit 2f991ad

Message ID 1421846317-7088-1-git-send-email-armbru@redhat.com
State New
Headers show

Commit Message

Markus Armbruster Jan. 21, 2015, 1:18 p.m. UTC
The "fall through" added by the commit is clearly intentional.  Mark
it so.  Hushes up Coverity.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 hw/net/xilinx_ethlite.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Markus Armbruster Feb. 4, 2015, 9:45 a.m. UTC | #1
Ping?

Markus Armbruster <armbru@redhat.com> writes:

> The "fall through" added by the commit is clearly intentional.  Mark
> it so.  Hushes up Coverity.
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
>  hw/net/xilinx_ethlite.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/hw/net/xilinx_ethlite.c b/hw/net/xilinx_ethlite.c
> index 9536f64..ad6b553 100644
> --- a/hw/net/xilinx_ethlite.c
> +++ b/hw/net/xilinx_ethlite.c
> @@ -146,6 +146,7 @@ eth_write(void *opaque, hwaddr addr,
>              if (!(value & CTRL_S)) {
>                  qemu_flush_queued_packets(qemu_get_queue(s->nic));
>              }
> +            /* fall through */
>          case R_TX_LEN0:
>          case R_TX_LEN1:
>          case R_TX_GIE0:
Peter Crosthwaite Feb. 4, 2015, 4:47 p.m. UTC | #2
On Wed, Jan 21, 2015 at 5:18 AM, Markus Armbruster <armbru@redhat.com> wrote:
> The "fall through" added by the commit is clearly intentional.  Mark
> it so.  Hushes up Coverity.
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>

Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>

> ---
>  hw/net/xilinx_ethlite.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/hw/net/xilinx_ethlite.c b/hw/net/xilinx_ethlite.c
> index 9536f64..ad6b553 100644
> --- a/hw/net/xilinx_ethlite.c
> +++ b/hw/net/xilinx_ethlite.c
> @@ -146,6 +146,7 @@ eth_write(void *opaque, hwaddr addr,
>              if (!(value & CTRL_S)) {
>                  qemu_flush_queued_packets(qemu_get_queue(s->nic));
>              }
> +            /* fall through */
>          case R_TX_LEN0:
>          case R_TX_LEN1:
>          case R_TX_GIE0:
> --
> 1.9.3
>
>
Markus Armbruster Feb. 10, 2015, 12:03 p.m. UTC | #3
Since maintainers haven't picked it up: could this go in via -trivial?

Peter Crosthwaite <peter.crosthwaite@xilinx.com> writes:

> On Wed, Jan 21, 2015 at 5:18 AM, Markus Armbruster <armbru@redhat.com> wrote:
>> The "fall through" added by the commit is clearly intentional.  Mark
>> it so.  Hushes up Coverity.
>>
>> Signed-off-by: Markus Armbruster <armbru@redhat.com>
>
> Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
>
>> ---
>>  hw/net/xilinx_ethlite.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/hw/net/xilinx_ethlite.c b/hw/net/xilinx_ethlite.c
>> index 9536f64..ad6b553 100644
>> --- a/hw/net/xilinx_ethlite.c
>> +++ b/hw/net/xilinx_ethlite.c
>> @@ -146,6 +146,7 @@ eth_write(void *opaque, hwaddr addr,
>>              if (!(value & CTRL_S)) {
>>                  qemu_flush_queued_packets(qemu_get_queue(s->nic));
>>              }
>> +            /* fall through */
>>          case R_TX_LEN0:
>>          case R_TX_LEN1:
>>          case R_TX_GIE0:
>> --
>> 1.9.3
>>
>>
Michael Tokarev Feb. 10, 2015, 6:59 p.m. UTC | #4
10.02.2015 15:03, Markus Armbruster wrote:
> Since maintainers haven't picked it up: could this go in via -trivial?
> 
> Peter Crosthwaite <peter.crosthwaite@xilinx.com> writes:
> 
>> On Wed, Jan 21, 2015 at 5:18 AM, Markus Armbruster <armbru@redhat.com> wrote:
>>> The "fall through" added by the commit is clearly intentional.  Mark
>>> it so.  Hushes up Coverity.

Applied to -trivial, thank you!

/mjt
diff mbox

Patch

diff --git a/hw/net/xilinx_ethlite.c b/hw/net/xilinx_ethlite.c
index 9536f64..ad6b553 100644
--- a/hw/net/xilinx_ethlite.c
+++ b/hw/net/xilinx_ethlite.c
@@ -146,6 +146,7 @@  eth_write(void *opaque, hwaddr addr,
             if (!(value & CTRL_S)) {
                 qemu_flush_queued_packets(qemu_get_queue(s->nic));
             }
+            /* fall through */
         case R_TX_LEN0:
         case R_TX_LEN1:
         case R_TX_GIE0: