Skip to content

Commit

Permalink
n_hdlc: fix whitespace around binary operators
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200219084118.26491-23-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Feb 21, 2020
1 parent 8d79bb5 commit 1283c72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/tty/n_hdlc.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ static void n_hdlc_tty_receive(struct tty_struct *tty, const __u8 *data,
return;
}

if ( count>maxframe ) {
if (count > maxframe) {
pr_debug("%s(%d) rx count>maxframesize, data discarded\n",
__FILE__, __LINE__);
return;
Expand All @@ -400,7 +400,7 @@ static void n_hdlc_tty_receive(struct tty_struct *tty, const __u8 *data,

/* copy received data to HDLC buffer */
memcpy(buf->buf, data, count);
buf->count=count;
buf->count = count;

/* add HDLC buffer to list of received frames */
n_hdlc_buf_put(&n_hdlc->rx_buf_list, buf);
Expand Down Expand Up @@ -514,7 +514,7 @@ static ssize_t n_hdlc_tty_write(struct tty_struct *tty, struct file *file,
return -EIO;

/* verify frame size */
if (count > maxframe ) {
if (count > maxframe) {
pr_debug("%s: truncating user packet from %zu to %d\n",
__func__, count, maxframe);
count = maxframe;
Expand Down

0 comments on commit 1283c72

Please sign in to comment.