lkml.org 
[lkml]   [2010]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH][resend][SCSI] Reduce number of sequential pointer derefs in scsi_error.c and reduce size as well
On Thu, 18 Nov 2010, Russell King wrote:

> On Thu, Nov 18, 2010 at 09:49:29PM +0100, Jesper Juhl wrote:
> > @@ -617,10 +623,10 @@ static int scsi_try_bus_device_reset(struct scsi_cmnd *scmd)
> >
> > static int __scsi_try_to_abort_cmd(struct scsi_cmnd *scmd)
> > {
> > - if (!scmd->device->host->hostt->eh_abort_handler)
> > - return FAILED;
> > -
> > - return scmd->device->host->hostt->eh_abort_handler(scmd);
> > + struct scsi_host_template *hostt = scmd->device->host->hostt;
> > + if (!hostt->eh_abort_handler)
> > + return FAILED;
> > + return hostt->eh_abort_handler(scmd);
>
> Not that I have much to do with SCSI anymore... I spotted the above.
> Is there any particular reason for using spaces to indent here rather
> than our usual tabs?
>
No. That was me and Emacs having a slight disagreement (see the mail I
just sent)...

--
Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please.



\
 
 \ /
  Last update: 2010-11-18 22:13    [W:0.094 / U:0.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site