Skip to content

Commit a48e897

Browse files
chaitu236gregkh
authored andcommitted
serial: 8250_ni: Reorder local variables
Reorder local variables in ni16550_probe to follow reverse Christmas tree style. Cc: Jason Smith <jason.smith@emerson.com> Cc: Gratian Crisan <gratian.crisan@emerson.com> Signed-off-by: Chaitanya Vadrevu <chaitanya.vadrevu@emerson.com> Reviewed-by: Jiri Slaby <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20250711200418.1858682-3-chaitanya.vadrevu@emerson.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 515c8e2 commit a48e897

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/tty/serial/8250/8250_ni.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,12 @@ static void ni16550_set_mctrl(struct uart_port *port, unsigned int mctrl)
275275

276276
static int ni16550_probe(struct platform_device *pdev)
277277
{
278+
struct uart_8250_port *uart __free(kfree) = NULL;
278279
const struct ni16550_device_info *info;
279280
struct device *dev = &pdev->dev;
280-
struct uart_8250_port *uart __free(kfree) = NULL;
281281
unsigned int txfifosz, rxfifosz;
282-
unsigned int prescaler;
283282
struct ni16550_data *data;
283+
unsigned int prescaler;
284284
const char *portmode;
285285
bool rs232_property;
286286
int ret;

0 commit comments

Comments
 (0)