[rtems commit] dosfs: Eliminate empty case statements that fall through to default.

Gedare Bloom gedare at rtems.org
Thu Sep 5 19:07:52 UTC 2013


Module:    rtems
Branch:    master
Commit:    b6cfbab43f23468bd43c3ce7130153cc5e57e2f0
Changeset: http://git.rtems.org/rtems/commit/?id=b6cfbab43f23468bd43c3ce7130153cc5e57e2f0

Author:    Gedare Bloom <gedare at rtems.org>
Date:      Thu Sep  5 14:03:00 2013 -0400

dosfs: Eliminate empty case statements that fall through to default.

Also eliminates possibly dead code in case the name_type can never
actually be MSDOS_NAME_INVALID.

1063860 Logically dead code.

---

 cpukit/libfs/src/dosfs/msdos_misc.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/cpukit/libfs/src/dosfs/msdos_misc.c b/cpukit/libfs/src/dosfs/msdos_misc.c
index 959768c..22d8f21 100644
--- a/cpukit/libfs/src/dosfs/msdos_misc.c
+++ b/cpukit/libfs/src/dosfs/msdos_misc.c
@@ -1941,7 +1941,6 @@ msdos_find_name_in_fat_file (
             else
                 retval = -1;
         break;
-        case MSDOS_NAME_INVALID:
         default:
             errno = EINVAL;
             retval = -1;
@@ -1997,7 +1996,6 @@ msdos_find_name_in_fat_file (
               else
                   retval = -1;
           break;
-          case MSDOS_NAME_INVALID:
           default:
               errno = EINVAL;
               retval = -1;




More information about the vc mailing list