mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
treewide: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary fall-through markings when it is the case. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
This commit is contained in:
@@ -1691,7 +1691,7 @@ static long ksys_semctl(int semid, int semnum, int cmd, unsigned long arg, int v
|
||||
case IPC_SET:
|
||||
if (copy_semid_from_user(&semid64, p, version))
|
||||
return -EFAULT;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case IPC_RMID:
|
||||
return semctl_down(ns, semid, cmd, &semid64);
|
||||
default:
|
||||
@@ -1805,7 +1805,7 @@ static long compat_ksys_semctl(int semid, int semnum, int cmd, int arg, int vers
|
||||
case IPC_SET:
|
||||
if (copy_compat_semid_from_user(&semid64, p, version))
|
||||
return -EFAULT;
|
||||
/* fallthru */
|
||||
fallthrough;
|
||||
case IPC_RMID:
|
||||
return semctl_down(ns, semid, cmd, &semid64);
|
||||
default:
|
||||
|
@@ -1179,7 +1179,7 @@ static long ksys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf, int ver
|
||||
case IPC_SET:
|
||||
if (copy_shmid_from_user(&sem64, buf, version))
|
||||
return -EFAULT;
|
||||
/* fallthru */
|
||||
fallthrough;
|
||||
case IPC_RMID:
|
||||
return shmctl_down(ns, shmid, cmd, &sem64);
|
||||
case SHM_LOCK:
|
||||
@@ -1374,7 +1374,7 @@ static long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr, int versio
|
||||
case IPC_SET:
|
||||
if (copy_compat_shmid_from_user(&sem64, uptr, version))
|
||||
return -EFAULT;
|
||||
/* fallthru */
|
||||
fallthrough;
|
||||
case IPC_RMID:
|
||||
return shmctl_down(ns, shmid, cmd, &sem64);
|
||||
case SHM_LOCK:
|
||||
|
Reference in New Issue
Block a user