From: Mauro Carvalho Chehab Date: Wed, 6 Feb 2013 10:29:39 +0000 (-0200) Subject: Revert "[media] drivers/media/usb/dvb-usb/dib0700_core.c: fix left shift" X-Git-Tag: v3.9-rc1~93^2~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f85ed0ceeba78b6b15a857ce48888fdb52de28d0;p=pandora-kernel.git Revert "[media] drivers/media/usb/dvb-usb/dib0700_core.c: fix left shift" On Wed, 6 Feb 2013 09:04:39 +0000 Olivier GRENIE wrote: > I do not agree with the patch. Let's take an example: adap->id = 0. Then: > * 1 << ~(adap->id) = 1 << ~(0) = 0 > * ~(1 << adap->id) = ~(1 << 0) = 0xFE > > The correct change should be: st->channel_state |= 1 << (1 - adap->id); Indeed, the original source code was not correct. Requested-by: Olivier GRENIE Cc: Patrick Boettcher Cc: Nickolai Zeldovich Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed