Skip to contentSkip to conversation

s390/vfio-ap: Fix indentation in vfio_ap_mdev_ioctl()

PATCH Applied Thorsten Blum 3 participants 3 messages Jan 16, 2025 – Jan 29, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390/vfio-ap: Fix indentation in vfio_ap_mdev_ioctl()

Remove any extra indentation to improve the code's readability.

---
 drivers/s390/crypto/vfio_ap_ops.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/s390/crypto/vfio_ap_ops.c +2 -2
index a52c2690933f..155e19aef5df 100644
@@ -2199,8 +2199,8 @@ static ssize_t vfio_ap_mdev_ioctl(struct vfio_device *vdev,
 		ret = vfio_ap_mdev_reset_queues(matrix_mdev);
 		break;
 	case VFIO_DEVICE_GET_IRQ_INFO:
-			ret = vfio_ap_get_irq_info(arg);
-			break;
+		ret = vfio_ap_get_irq_info(arg);
+		break;
 	case VFIO_DEVICE_SET_IRQS:
 		ret = vfio_ap_set_irqs(matrix_mdev, arg);
 		break;
Signature · 1 line
2.48.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Thorsten Blum

Remove any extra indentation to improve the code's readability.

Ironically, I noticed this the other day and was going to fix it.

Quoted 21 lines
---
  drivers/s390/crypto/vfio_ap_ops.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/s390/crypto/vfio_ap_ops.c +2 -2
index a52c2690933f..155e19aef5df 100644
@@ -2199,8 +2199,8 @@ static ssize_t vfio_ap_mdev_ioctl(struct vfio_device *vdev,
  		ret = vfio_ap_mdev_reset_queues(matrix_mdev);
  		break;
  	case VFIO_DEVICE_GET_IRQ_INFO:
-			ret = vfio_ap_get_irq_info(arg);
-			break;
+		ret = vfio_ap_get_irq_info(arg);
+		break;
  	case VFIO_DEVICE_SET_IRQS:
  		ret = vfio_ap_set_irqs(matrix_mdev, arg);
  		break;
maintainer Applied
#2 lore raw
In reply to Thorsten Blum
Quoted 12 lines · Thorsten Blum

Remove any extra indentation to improve the code's readability.

---
 drivers/s390/crypto/vfio_ap_ops.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/s390/crypto/vfio_ap_ops.c +0 -0
index a52c2690933f..155e19aef5df 100644

drivers/s390/crypto/vfio_ap_ops.c static ssize_t vfio_ap_mdev_ioctl(struct vfio_device *vdev, · line 2206

Quoted 10 lines
drivers/s390/crypto/vfio_ap_ops.c +2 -2
@@ -2199,8 +2199,8 @@ static ssize_t vfio_ap_mdev_ioctl(struct vfio_device *vdev,
 		ret = vfio_ap_mdev_reset_queues(matrix_mdev);
 		break;
 	case VFIO_DEVICE_GET_IRQ_INFO:
-			ret = vfio_ap_get_irq_info(arg);
-			break;
+		ret = vfio_ap_get_irq_info(arg);
+		break;
 	case VFIO_DEVICE_SET_IRQS:
 		ret = vfio_ap_set_irqs(matrix_mdev, arg);
 		break;

Applied, thanks!