]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - ipc/shm.c
ipc/shmc.c: eliminate ugly 80-col tricks
[karo-tx-linux.git] / ipc / shm.c
index 7e199fa1960f86087c557bcc39b08d304c2b8f7b..85dc001634b1bb6cb63604f79178205504f73aca 100644 (file)
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -491,10 +491,10 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params)
 
        sprintf (name, "SYSV%08x", key);
        if (shmflg & SHM_HUGETLB) {
-               struct hstate *hs = hstate_sizelog((shmflg >> SHM_HUGE_SHIFT)
-                                               & SHM_HUGE_MASK);
+               struct hstate *hs;
                size_t hugesize;
 
+               hs = hstate_sizelog((shmflg >> SHM_HUGE_SHIFT) & SHM_HUGE_MASK);
                if (!hs) {
                        error = -EINVAL;
                        goto no_file;