Skip to contentSkip to conversation

tty: n_gsm: fix mux activation issues in gsm_config()

PATCH Starke, Daniel 2 participants 2 messages May 9, 2022 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines

Review

Quoted 3 lines
  static int gsm_config(struct gsm_mux *gsm, struct gsm_config *c)
  {
(quoted diff) +1 -0
+	int ret = 0;

Why is the initialization needed? You can as well declare the variable only inside the if below.

You are right, this was unneeded. But this patch was already included in the tty-linus branch. Shall I resubmit it nevertheless?

Best regards,
Daniel Starke

maintainer
#1 lore raw
Quoted 8 lines · Daniel
Quoted 5 lines

Review

Quoted 3 lines
   static int gsm_config(struct gsm_mux *gsm, struct gsm_config *c)
   {
(quoted diff) +1 -0
+	int ret = 0;

Why is the initialization needed? You can as well declare the variable only inside the if below.

You are right, this was unneeded. But this patch was already included in the tty-linus branch. Shall I resubmit it nevertheless?

In that case, you can only send a fixup patch...

thanks,

Signature · 2 lines
js
suse labs