Skip to contentSkip to conversation

s390x/pv: remove semicolon from macro definition

PATCH In review Claudio Imbrenda 3 participants 3 messages Oct 10, 2022 – Oct 17, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390x/pv: remove semicolon from macro definition

Remove spurious semicolon at the end of the macro s390_pv_cmd

---
 hw/s390x/pv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/s390x/pv.c +1 -1
index 401b63d6cb..9bcd5d829f 100644
@@ -45,7 +45,7 @@ static int __s390_pv_cmd(uint32_t cmd, const char *cmdname, void *data)
  * This macro lets us pass the command as a string to the function so
  * we can print it on an error.
  */
-#define s390_pv_cmd(cmd, data) __s390_pv_cmd(cmd, #cmd, data);
+#define s390_pv_cmd(cmd, data) __s390_pv_cmd(cmd, #cmd, data)
 #define s390_pv_cmd_exit(cmd, data)    \
 {                                      \
     int rc;                            \
Signature · 1 line
2.37.3
#2 lore raw
In reply to Claudio Imbrenda
Quoted 12 lines · Claudio Imbrenda

Remove spurious semicolon at the end of the macro s390_pv_cmd

---
  hw/s390x/pv.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
hw/s390x/pv.c +0 -0
index 401b63d6cb..9bcd5d829f 100644

hw/s390x/pv.c static int __s390_pv_cmd(uint32_t cmd, const char *cmdname, void *data) · line 51

Quoted 8 lines
hw/s390x/pv.c +1 -1
@@ -45,7 +45,7 @@ static int __s390_pv_cmd(uint32_t cmd, const char *cmdname, void *data)
   * This macro lets us pass the command as a string to the function so
   * we can print it on an error.
   */
-#define s390_pv_cmd(cmd, data) __s390_pv_cmd(cmd, #cmd, data);
+#define s390_pv_cmd(cmd, data) __s390_pv_cmd(cmd, #cmd, data)
  #define s390_pv_cmd_exit(cmd, data)    \
  {                                      \
      int rc;                            \

Thanks, queued to my s390x-next branch:

https://gitlab.com/thuth/qemu/-/commits/s390x-next/

Thomas