mirror of https://gitee.com/openkylin/linux.git
staging: media: lirc: Remove unnecessary blank lines
Remove unneccessary blank lines to resolve checkpatch issue. Signed-off-by: Namrata A Shettar <namrataashettar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a0ba7fcf6a
commit
e955576541
|
@ -47,7 +47,6 @@
|
||||||
#include <media/lirc.h>
|
#include <media/lirc.h>
|
||||||
#include <media/lirc_dev.h>
|
#include <media/lirc_dev.h>
|
||||||
|
|
||||||
|
|
||||||
#define MOD_AUTHOR "Oliver Stabel <oliver.stabel@gmx.de>, " \
|
#define MOD_AUTHOR "Oliver Stabel <oliver.stabel@gmx.de>, " \
|
||||||
"Tim Davies <tim@opensystems.net.au>"
|
"Tim Davies <tim@opensystems.net.au>"
|
||||||
#define MOD_DESC "USB Driver for Sasem Remote Controller V1.1"
|
#define MOD_DESC "USB Driver for Sasem Remote Controller V1.1"
|
||||||
|
@ -86,7 +85,6 @@ static void ir_close(void *data);
|
||||||
#define SASEM_DATA_BUF_SZ 32
|
#define SASEM_DATA_BUF_SZ 32
|
||||||
|
|
||||||
struct sasem_context {
|
struct sasem_context {
|
||||||
|
|
||||||
struct usb_device *dev;
|
struct usb_device *dev;
|
||||||
int vfd_isopen; /* VFD port has been opened */
|
int vfd_isopen; /* VFD port has been opened */
|
||||||
unsigned int vfd_contrast; /* VFD contrast */
|
unsigned int vfd_contrast; /* VFD contrast */
|
||||||
|
@ -156,7 +154,6 @@ static int debug;
|
||||||
|
|
||||||
|
|
||||||
/*** M O D U L E C O D E ***/
|
/*** M O D U L E C O D E ***/
|
||||||
|
|
||||||
MODULE_AUTHOR(MOD_AUTHOR);
|
MODULE_AUTHOR(MOD_AUTHOR);
|
||||||
MODULE_DESCRIPTION(MOD_DESC);
|
MODULE_DESCRIPTION(MOD_DESC);
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
@ -186,7 +183,6 @@ static void deregister_from_lirc(struct sasem_context *context)
|
||||||
else
|
else
|
||||||
dev_info(&context->dev->dev,
|
dev_info(&context->dev->dev,
|
||||||
"Deregistered Sasem driver (minor:%d)\n", minor);
|
"Deregistered Sasem driver (minor:%d)\n", minor);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -297,7 +293,6 @@ static int vfd_close(struct inode *inode, struct file *file)
|
||||||
context->vfd_isopen = 0;
|
context->vfd_isopen = 0;
|
||||||
dev_info(&context->dev->dev, "VFD port closed\n");
|
dev_info(&context->dev->dev, "VFD port closed\n");
|
||||||
if (!context->dev_present && !context->ir_isopen) {
|
if (!context->dev_present && !context->ir_isopen) {
|
||||||
|
|
||||||
/* Device disconnected before close and IR port is
|
/* Device disconnected before close and IR port is
|
||||||
* not open. If IR port is open, context will be
|
* not open. If IR port is open, context will be
|
||||||
* deleted by ir_close. */
|
* deleted by ir_close. */
|
||||||
|
@ -546,9 +541,7 @@ static void ir_close(void *data)
|
||||||
* at disconnect time, so do it now.
|
* at disconnect time, so do it now.
|
||||||
*/
|
*/
|
||||||
deregister_from_lirc(context);
|
deregister_from_lirc(context);
|
||||||
|
|
||||||
if (!context->vfd_isopen) {
|
if (!context->vfd_isopen) {
|
||||||
|
|
||||||
mutex_unlock(&context->ctx_lock);
|
mutex_unlock(&context->ctx_lock);
|
||||||
delete_context(context);
|
delete_context(context);
|
||||||
return;
|
return;
|
||||||
|
@ -633,7 +626,6 @@ static void usb_rx_callback(struct urb *urb)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
switch (urb->status) {
|
switch (urb->status) {
|
||||||
|
|
||||||
case -ENOENT: /* usbcore unlink successful! */
|
case -ENOENT: /* usbcore unlink successful! */
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -651,8 +643,6 @@ static void usb_rx_callback(struct urb *urb)
|
||||||
usb_submit_urb(context->rx_urb, GFP_ATOMIC);
|
usb_submit_urb(context->rx_urb, GFP_ATOMIC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback function for USB core API: Probe
|
* Callback function for USB core API: Probe
|
||||||
*/
|
*/
|
||||||
|
@ -709,7 +699,6 @@ static int sasem_probe(struct usb_interface *interface,
|
||||||
|
|
||||||
} else if (!vfd_ep_found &&
|
} else if (!vfd_ep_found &&
|
||||||
usb_endpoint_is_int_out(ep)) {
|
usb_endpoint_is_int_out(ep)) {
|
||||||
|
|
||||||
tx_endpoint = ep;
|
tx_endpoint = ep;
|
||||||
vfd_ep_found = 1;
|
vfd_ep_found = 1;
|
||||||
if (debug)
|
if (debug)
|
||||||
|
|
Loading…
Reference in New Issue