Commit c1989b36df51b08a59b858920b4c84c392a63d12
Committed by
Greg Kroah-Hartman
1 parent
e8afd402cc
Exists in
master
and in
7 other branches
Staging: pohmelfs: fix spaces and TAB coding style issue in net.c
This is a patch to the net.c file that fixed up a TAB and spaces Errors found by the checkpatch.pl tools, like ERROR: switch and case should be at the same indent and spaces required around that '=' (ctx:VxV) Signed-off-by: Ruslan Pisarev <ruslan@rpisarev.org.ua> Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Showing 1 changed file with 19 additions and 19 deletions Side-by-side Diff
drivers/staging/pohmelfs/net.c
... | ... | @@ -713,8 +713,8 @@ |
713 | 713 | |
714 | 714 | dprintk("%s: cipher '%s': %s, hash: '%s': %s.\n", |
715 | 715 | __func__, |
716 | - psb->cipher_string, (cap->cipher_strlen)?"SUPPORTED":"NOT SUPPORTED", | |
717 | - psb->hash_string, (cap->hash_strlen)?"SUPPORTED":"NOT SUPPORTED"); | |
716 | + psb->cipher_string, (cap->cipher_strlen) ? "SUPPORTED" : "NOT SUPPORTED", | |
717 | + psb->hash_string, (cap->hash_strlen) ? "SUPPORTED" : "NOT SUPPORTED"); | |
718 | 718 | |
719 | 719 | if (!cap->hash_strlen) { |
720 | 720 | if (psb->hash_strlen && psb->crypto_fail_unsupported) |
721 | 721 | |
722 | 722 | |
... | ... | @@ -748,11 +748,11 @@ |
748 | 748 | return err; |
749 | 749 | |
750 | 750 | switch (cmd->id) { |
751 | - case POHMELFS_CRYPTO_CAPABILITIES: | |
751 | + case POHMELFS_CRYPTO_CAPABILITIES: | |
752 | 752 | return pohmelfs_crypto_cap_response(st); |
753 | - case POHMELFS_ROOT_CAPABILITIES: | |
753 | + case POHMELFS_ROOT_CAPABILITIES: | |
754 | 754 | return pohmelfs_root_cap_response(st); |
755 | - default: | |
755 | + default: | |
756 | 756 | break; |
757 | 757 | } |
758 | 758 | return -EINVAL; |
... | ... | @@ -774,7 +774,7 @@ |
774 | 774 | m = pohmelfs_mcache_search(psb, cmd->id); |
775 | 775 | |
776 | 776 | dprintk("%s: id: %llu, gen: %llu, err: %d.\n", |
777 | - __func__, cmd->id, (m)?m->gen:0, error); | |
777 | + __func__, cmd->id, (m) ? m->gen : 0, error); | |
778 | 778 | |
779 | 779 | if (!m) { |
780 | 780 | printk("%s: failed to find getxattr cache entry: id: %llu.\n", __func__, cmd->id); |
... | ... | @@ -824,7 +824,7 @@ |
824 | 824 | m = pohmelfs_mcache_search(psb, id); |
825 | 825 | |
826 | 826 | dprintk("%s: id: %llu, gen: %llu, err: %d.\n", |
827 | - __func__, cmd->id, (m)?m->gen:0, err); | |
827 | + __func__, cmd->id, (m) ? m->gen : 0, err); | |
828 | 828 | |
829 | 829 | if (!m) { |
830 | 830 | pohmelfs_data_recv(st, st->data, cmd->size); |
... | ... | @@ -915,7 +915,7 @@ |
915 | 915 | unsigned char *hash = e->data; |
916 | 916 | |
917 | 917 | dprintk("%s: received hash: ", __func__); |
918 | - for (i=0; i<cmd->csize; ++i) | |
918 | + for (i = 0; i < cmd->csize; ++i) | |
919 | 919 | printk("%02x ", hash[i]); |
920 | 920 | |
921 | 921 | printk("\n"); |
922 | 922 | |
923 | 923 | |
924 | 924 | |
925 | 925 | |
926 | 926 | |
927 | 927 | |
928 | 928 | |
929 | 929 | |
930 | 930 | |
931 | 931 | |
... | ... | @@ -933,37 +933,37 @@ |
933 | 933 | } |
934 | 934 | |
935 | 935 | switch (cmd->cmd) { |
936 | - case NETFS_READ_PAGE: | |
936 | + case NETFS_READ_PAGE: | |
937 | 937 | err = pohmelfs_read_page_response(st); |
938 | 938 | break; |
939 | - case NETFS_READDIR: | |
939 | + case NETFS_READDIR: | |
940 | 940 | err = pohmelfs_readdir_response(st); |
941 | 941 | break; |
942 | - case NETFS_LOOKUP: | |
942 | + case NETFS_LOOKUP: | |
943 | 943 | err = pohmelfs_lookup_response(st); |
944 | 944 | break; |
945 | - case NETFS_CREATE: | |
945 | + case NETFS_CREATE: | |
946 | 946 | err = pohmelfs_create_response(st); |
947 | 947 | break; |
948 | - case NETFS_REMOVE: | |
948 | + case NETFS_REMOVE: | |
949 | 949 | err = pohmelfs_remove_response(st); |
950 | 950 | break; |
951 | - case NETFS_TRANS: | |
951 | + case NETFS_TRANS: | |
952 | 952 | err = pohmelfs_transaction_response(st); |
953 | 953 | break; |
954 | - case NETFS_PAGE_CACHE: | |
954 | + case NETFS_PAGE_CACHE: | |
955 | 955 | err = pohmelfs_page_cache_response(st); |
956 | 956 | break; |
957 | - case NETFS_CAPABILITIES: | |
957 | + case NETFS_CAPABILITIES: | |
958 | 958 | err = pohmelfs_capabilities_response(st); |
959 | 959 | break; |
960 | - case NETFS_LOCK: | |
960 | + case NETFS_LOCK: | |
961 | 961 | err = pohmelfs_data_lock_response(st); |
962 | 962 | break; |
963 | - case NETFS_XATTR_GET: | |
963 | + case NETFS_XATTR_GET: | |
964 | 964 | err = pohmelfs_getxattr_response(st); |
965 | 965 | break; |
966 | - default: | |
966 | + default: | |
967 | 967 | printk("%s: wrong cmd: %u, id: %llu, start: %llu, size: %u, ext: %u.\n", |
968 | 968 | __func__, cmd->cmd, cmd->id, cmd->start, cmd->size, cmd->ext); |
969 | 969 | netfs_state_reset(st); |