Code

reduce switch statement
authorMarek Becka <marek.becka@superhosting.cz>
Wed, 12 Feb 2014 14:17:21 +0000 (15:17 +0100)
committerMarek Becka <marek.becka@superhosting.cz>
Wed, 12 Feb 2014 14:17:21 +0000 (15:17 +0100)
src/nfs.c

index fdd3149c5f81a86403f9ceda9f642fd3f246f737..326fa708d3665b189aa8e25b0933f33bc1e2784b 100644 (file)
--- a/src/nfs.c
+++ b/src/nfs.c
@@ -500,26 +500,14 @@ static int nfs_submit_nfs4_client (const char *instance, char **fields,
                        proc40_names_num = fields_num;
                        break;
                case 40:
-                       proc40_names_num = 35;
-                       break;
                case 41:
                        proc40_names_num = 35;
                        break;
                case 42:
-                       proc40_names_num = 36;
-                       break;
                case 44:
-                       proc40_names_num = 36;
-                       break;
                case 46:
-                       proc40_names_num = 36;
-                       break;
                case 47:
-                       proc40_names_num = 36;
-                       break;
                case 51:
-                       proc40_names_num = 36;
-                       break;
                case 53:
                        proc40_names_num = 36;
                        break;