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

Gedare Bloom gedare at rtems.org
Thu Sep 5 18:05:37 UTC 2013


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;
-- 
1.7.1




More information about the devel mailing list