On 7/27/19 5:37 AM, Douglas Gilbert wrote: > Add sg_allow_if_err_recover() to do checks common to several entry > points. Replace retval with either res or ret. Rename > sg_finish_rem_req() to sg_finish_scsi_blk_rq(). Rename > sg_new_write() to sg_submit(). Other cleanups triggered by > checkpatch.pl . > > Signed-off-by: Douglas Gilbert <dgilbert@xxxxxxxxxxxx> > --- > drivers/scsi/sg.c | 245 +++++++++++++++++++++++++--------------------- > 1 file changed, 133 insertions(+), 112 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 21284 (AG Nürnberg)