]> git.karo-electronics.de Git - linux-beck.git/commitdiff
agp: Remove 'break' after 'return' statement.
authorSantosh Nayak <santoshprasadnayak@gmail.com>
Thu, 5 Apr 2012 06:01:08 +0000 (11:31 +0530)
committerDave Airlie <airlied@redhat.com>
Thu, 12 Apr 2012 16:56:17 +0000 (17:56 +0100)
'break' is unnecessary after 'return' statement.
Remove all such 'break' as clean up.

Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/char/agp/generic.c
drivers/char/agp/sgi-agp.c

index 17e05d1076b34f2ec9e762c38239b7a02993b06e..38022ea7eeb41b6e820cf8d2f2ec44994cc20013 100644 (file)
@@ -1010,7 +1010,6 @@ int agp_generic_free_gatt_table(struct agp_bridge_data *bridge)
        case LVL2_APER_SIZE:
                /* The generic routines can't deal with 2 level gatt's */
                return -EINVAL;
-               break;
        default:
                page_order = 0;
                break;
@@ -1077,7 +1076,6 @@ int agp_generic_insert_memory(struct agp_memory * mem, off_t pg_start, int type)
        case LVL2_APER_SIZE:
                /* The generic routines can't deal with 2 level gatt's */
                return -EINVAL;
-               break;
        default:
                num_entries = 0;
                break;
index ffa888cd1c882818aebbe2eea0bedbc1929f439d..192000377737974f280aa75418a79864ce170455 100644 (file)
@@ -158,7 +158,6 @@ static int sgi_tioca_insert_memory(struct agp_memory *mem, off_t pg_start,
                break;
        case LVL2_APER_SIZE:
                return -EINVAL;
-               break;
        default:
                num_entries = 0;
                break;