mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 22:26:23 +00:00
Remove a superfluous pair of braces
Avoid that checkpatch v3.7 reports the following warning:
WARNING: braces {} are not necessary for any arm of this statement
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4655 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -207,9 +207,9 @@ static int tape_attach(struct scst_device *dev)
|
||||
|
||||
if (rc == 0) {
|
||||
int medium_type, mode, speed, density;
|
||||
if (buffer[3] == 8) {
|
||||
if (buffer[3] == 8)
|
||||
dev->block_size = get_unaligned_be24(&buffer[9]);
|
||||
} else
|
||||
else
|
||||
dev->block_size = TAPE_DEF_BLOCK_SIZE;
|
||||
medium_type = buffer[1];
|
||||
mode = (buffer[2] & 0x70) >> 4;
|
||||
|
||||
Reference in New Issue
Block a user